How to find the parent of an old-style class?

Jasper jasper at peak.org
Thu Apr 24 10:16:47 EDT 2008


I'm stuck using a library based on old style classes, and need to find
a class's parent at runtime.

With new style classes you can use .__base__ to inspect a parent, but
I can't remember how this was done in days of yore, before object.
I've tried googling, but apparently my search term Fu is weak. :-(

Can anyone help me out here?  There must be something simple.

-Jasper



More information about the Python-list mailing list