[Python-Dev] Global slots pondering (original) (raw)

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