[Python-Dev] Global slots pondering (original) (raw)
François Pinard pinard at iro.umontreal.ca
Wed Mar 10 09:56:45 EST 2004
- Previous message: [Python-Dev] Global __slots__ pondering
- Next message: [Python-Dev] PyCON: Pre-registration ends in one week!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Global __slots__ pondering
- Next message: [Python-Dev] PyCON: Pre-registration ends in one week!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]