Get the name of the superlcass?

Thomas Weholt thomas at cintra.no
Thu Jul 20 02:44:43 EDT 2000


Hi,

I`m subclassing from a superclass. I can get the name of the subclass
by using Subclass.__class__.name. But I would like to get the name of
the superclass as well, but not lose the option of getting the
subclass either. 

Ex. I got a class Structure, and a sublcass Building. I want to check
in a list for structures, then see if any of them are buildings. 

M'kay?

Thomas



More information about the Python-list mailing list