[Python-Dev] Global __slots__ pondering

François Pinard pinard at iro.umontreal.ca
Wed Mar 10 09:56:45 EST 2004


> One thing you can do is have a custom metaclass that sticks
> '__slots__':() [as needed] into the namespace before calling the
> superclass' __new__ method.

So simple!  I should have thought about that.  Thanks!

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard



More information about the Python-Dev mailing list