[Tutor] Protected methods/variables

Mike Hansen mhansen at cso.atmel.com
Tue Apr 4 21:09:32 CEST 2006

> > - you can use __slots__ to restrict arbirtrary creation of 
> (dynamic) 
> > instrance attributes
> You can do this, but it is generally considered a misuse of 
> __slots__ and potentially problematic.

I'll bite. What is the proper/intended use of __slots__? Does it have
something to do with memory?


More information about the Tutor mailing list