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...
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to