[Tutor] Using new style classes and __slots__

mailing list ml.cyresse at gmail.com
Sat Sep 24 08:50:26 CEST 2005


Hi all,

I'm just looking for a quick runthrough on the differences between new
style classes and the old ones, and how to use the new ones.

Also, how exactly do you use __slots__? I've got a 6000 object
collection, and apparently using __slots__ will save memory, but only
those attributes specified in __slots__ can be set, which suits my
project fine.

Is anyone able to point me in the right direction?

Much thanks,

Liam Clarke


More information about the Tutor mailing list