Feature request: String-inferred names

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Tue Dec 1 10:58:00 EST 2009


The Music Guy a écrit :
(snip)
> Lie Ryan, I think I see what you're saying about using __dict__ to add
> members

No "members" in Python - only attributes.

> to a class, but it's not quite the same. __dict__ is only for
> attributes, NOT properties, methods, etc. which all come from the
> class of an object rather than the object's __dict__.

properties and methods (well, functions actually) ARE attributes... of 
the class object. And you can of course access the obj.__class__.__dict__

Just for the record...



More information about the Python-list mailing list