[Python-Dev] Global __slots__ pondering
Greg Ewing
greg at cosc.canterbury.ac.nz
Tue Mar 9 18:51:49 EST 2004
François Pinard:
> It would be less surprising if `__metaclass__' and
> `__slots__' could equally be implied globally. Or maybe? :-)
I think Guido regards __slots__ as something of a hack that you should
only use if you have a really good reason. As such it's probably good
that you have to make the explicit decision for each class, rather
than inheriting it from somewhere.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list