dynamism

Michael Chermside mcherm at destiny.com
Tue Sep 10 13:53:18 EDT 2002


Steven Shaw wrote:
>>An object of a builtin type, or with __slots__ defined in the class and
>>all base classes does not have a __dict__ attribute.
> 
> 
> Does this mean that the attributes are stored in a more efficient way?
> 
> Is there a way to implement "record-based" object layout rather than
> "associative-array based" object layout?

In short, YES.

See http://python.org/doc/2.2.1/whatsnew/sect-rellinks.html . 
Unfortunately, http://www.python.org/peps/pep-0253.html doesn't give 
full details since they haven't been written up yet.

-- Michael Chermside







More information about the Python-list mailing list