It's ok to __slots__ for what they were intended

Fredrik Lundh fredrik at pythonware.com
Fri Dec 21 16:41:16 EST 2007


MrJean1 wrote:

> My milage does vary, see this older post
> 
>   <http://mail.python.org/pipermail/python-list/2004-May/261985.html>
> 
> Similar figures are shown with Python 2.5, both for 32- and 64-bit.

unless I'm missing something, you're measuring object creation time.

I'm measuring attribute access time (the topic was "navigating large 
trees of small objects", not building them).

</F>




More information about the Python-list mailing list