operator overloading

7stud bbxx789_05ss at yahoo.com
Wed Apr 4 15:53:12 EDT 2007


On Apr 4, 12:41 pm, "7stud" <bbxx789_0... at yahoo.com> wrote:
> According to Python in a Nutshell(p.102), a name that is a slot can
> only be "bound"(i.e. assigned to) inside the class body.  

Upon closer reading, it actually says that the name "__slots__" has to
be bound inside the class body for the slot restrictions to take
effect.




More information about the Python-list mailing list