Chris Rebert a écrit :
On Sun, Aug 31, 2008 at 6:39 PM, ssecorp <[EMAIL PROTECTED]> wrote:
Why/how is it possible to add variables like this? I don't understand
this mechanism:
http://docs.python.org/tut/node11.html#SECTION0011330000000000000000

Under the covers, Python objects are implemented using dictionaries,

Not necessarily.

so adding an attribute just adds a new key-value pair to the object's
internal dictionary (which, incidentally, you can access as
someobj.__dict__).

Idem.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to