setting a property via self.__dict__

Robin Becker robin at
Wed Oct 30 23:31:47 CET 2002

In article <efa417af.0210301251.2b380da at>, Frank von
Delft <fvondelft at> writes
>Duncan Booth <duncan at> wrote in message news:<Xns92B75C6BDF4Eduncanrcpc
>ouk at>...
>> The property is an entry in the class's dictionary, not in the instance.
>Really I should ask:  why do all the examples show it defined in the
>class dictionary?
I guess that the value may then be stored per instance, but the
infrastructure set/get methods etc are then shared for all instances. 
Robin Becker

More information about the Python-list mailing list