Don't use __slots__ (was Re: Problem of Readability of Python)

Aahz aahz at
Mon Oct 8 06:27:31 CEST 2007

In article <2tqdncU0D6K8v5TanZ2dnUVZ_hGdnZ2d at>,
Steven Bethard  <steven.bethard at> wrote:
>You can use __slots__  [...]

Aaaugh!  Don't use __slots__!

Seriously, __slots__ are for wizards writing applications with huuuge
numbers of object instances (like, millions of instances).  For an
extended thread about this, see
Aahz (aahz at           <*>

The best way to get information on Usenet is not to ask a question, but
to post the wrong information.

More information about the Python-list mailing list