Spelling mistakes!

Michele Simionato michele.simionato at gmail.com
Mon Jan 9 05:28:32 EST 2006

skip at pobox.com wrote:
>  The OP sort of seemed like he was pining
> for attribute declarations.  __slots__ is the closest thing Python has to
> them.  I don't use them myself (since I've basically avoided new-style
> classes so far).
> Skip

No, slots are a memory optimization trick and should NOT be used as
You can find a few posts of the Martellibot on the subject. I even
wrote a recipe
to tell people who want static declarations how to implement them
without slots:

 Michele Simionato

More information about the Python-list mailing list