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

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