function factory question: embed current values of object attributes

Alan Isaac aisaac at american.edu
Sat Feb 21 04:15:25 EST 2009


Gabriel Genellina wrote: 
> If you want a "frozen" function (that is, a function already set-up with  
> the parameters taken from the current values of x.a, x.b) use  
> functools.partial:


OK, that's also a nice idea.
Thanks!
Alan



More information about the Python-list mailing list