Some problems with classes

Bruno Desthuilliers bdesth.quelquechose at
Mon Sep 1 18:18:57 CEST 2008

Chris Rebert a écrit :
> On Sun, Aug 31, 2008 at 6:39 PM, ssecorp <circularfunc at> wrote:
>> Why/how is it possible to add variables like this? I don't understand
>> this mechanism:
> 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__).


More information about the Python-list mailing list