__slot__: what is it good for?

Alexander Eisenhuth newsuser at stacom-software.de
Mon Jun 21 10:27:30 EDT 2010


Hello out there,

- what is the reason, that __slots__ are introduced in python?

- I want to use slots to define a class where no attributes are added at 
runtime. Is that a good idea to use slots for that?


Regards
Alexander



More information about the Python-list mailing list