How to list the superclassesof an object
Michele Simionato
mis6 at pitt.edu
Thu Nov 6 01:17:11 EST 2003
Fernando Rodriguez <frr at easyjob.net> wrote in message news:
> Where can I find info about the differences / advantages of
> these new classes?
Alex Martelli's book and Guido's essay:
http://www.python.org/2.2.2/descrintro.html
> Is it safe to convert all my previous classes to new ones,
Essentially yes.
> and how can I do it? O:-)
Put the line ``__metaclass__=type`` on top of your script. All your
old style class will be automagically converted to new style classes.
Michele Simionato
More information about the Python-list
mailing list