How to list the superclassesof an object

Jeremy Fincher tweedgeezer at hotmail.com
Wed Nov 5 16:12:48 EST 2003


Fernando Rodriguez <frr at easyjob.net> wrote in message news:<ht6iqv8l8vockj88t4ffs6k7rnplbujlqm at 4ax.com>...
> Hi,
> 
> How can I list the superclasses of an object? O:-)
> 
> TIA

Take a look at self.__class__.__bases__ from within one of your methods.

Jeremy




More information about the Python-list mailing list