Some language proposals.

Aahz aahz at pythoncraft.com
Wed Feb 25 14:55:17 EST 2004


In article <tyfwu6bmfhx.fsf at pcepsft001.cern.ch>,
Jacek Generowicz  <jacek.generowicz at cern.ch> wrote:
>
>Sure. I have some stateful methods of classes (which I create
>dynamically and stick onto the class as the information about the
>existence of the method becomes available). By implementing them as
>closures I can just stick them on to the class. If I were to implement
>them as instances then I'd have to reimplement all the descriptors
>that take care of turning functions into bound or unbound methods.

Why not use callable instances?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Do not taunt happy fun for loops. Do not change lists you are looping over."
--Remco Gerlich, comp.lang.python



More information about the Python-list mailing list