a question on __slots__ (and example from Nutshell)
Michele Simionato
michele.simionato at poste.it
Thu Jun 3 12:18:02 EDT 2004
pythonguy at Hotpop.com (Anand Pillai) wrote in message news:<84fc4588.0406030038.1059a247 at posting.google.com>...
> Since types and classes are unified in the new object model,
> the following line at the top of the source file will also
> do the trick, even if you dont directly subclass from object.
>
> __metaclass__ = object
>
You mean __metaclass__ = type, isn't it?
Michele Simionato
More information about the Python-list
mailing list