Don't use __slots__! (was Re: dicts vs classes)
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Tue Jul 25 12:00:48 EDT 2006
Aahz, citing Guido:
>__slots__ is a terrible hack with nasty, hard-to-fathom side
>effects that should only be used by programmers at grandmaster and
>wizard levels. Unfortunately it has gained an enormous undeserved
I think I have used __slots__ just one time. Can you tell me some of of
such bad side effects?
Bye,
bearophile
More information about the Python-list
mailing list