On Thu, 08 Dec 2011, Gael Varoquaux wrote:
> > aiming to use which aren't in 2.5... ?
> Named tuples, 
yeah

> and function calls of type 'f(arg1, arg2=1, **kwargs)'.
hm... not sure what you mean (there was some change on how keyword args
are handled but can't recall now), since following snippet works in both


$> cat /tmp/1.py
def f(arg1, arg2=1, **kwargs):
    print "got ", arg1, arg2, kwargs

f(0)
f(0,1)
f(0,arg2='string')
f(0,1,buga=1, duga=2)

$> python2.5 /tmp/1.py 
got  0 1 {}
got  0 1 {}
got  0 string {}
got  0 1 {'duga': 2, 'buga': 1}

$> python2.6 /tmp/1.py 
got  0 1 {}
got  0 1 {}
got  0 string {}
got  0 1 {'duga': 2, 'buga': 1}


-- 
=------------------------------------------------------------------=
Keep in touch                                     www.onerussian.com
Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to