Don't use __slots__ (was Re: performance of dictionary lookup vs. object attributes)

Jarek Zgoda jzgoda at o2.usun.pl
Sat Aug 26 16:35:01 EDT 2006


skip at pobox.com napisał(a):

> That said,  It's not mentioned on the Python3.0 page of the wiki:
> 
>     http://wiki.python.org/moin/Python3.0
> 
> or in PEP 3000:
> 
>     http://www.python.org/dev/peps/pep-3000/
> 
> and I see no discussion about it in the Python 3000 mailing list archives:
> 
>     http://mail.python.org/pipermail/python-3000/
> 
> though Ian Bicking asks about it here:
> 
>     http://wiki.python.org/moin/Python3%2e0Suggestions#head-fc89a0fe3f697418776925f4828ea863031fbbd2

Having that said, should we hope __slots__ would disappear in (some)
future (tomorrow?!, in next 10 microseconds?!)? Please, don't left us
hopeless.

-- 
Jarek Zgoda
http://jpa.berlios.de/



More information about the Python-list mailing list