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

2008-04-24 Thread Jasper
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

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

2008-04-24 Thread Jonathan Gardner
On Apr 24, 7:16 am, Jasper [EMAIL PROTECTED] wrote: 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.

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

2008-04-24 Thread Jasper
On Apr 24, 10:02 am, Jonathan Gardner [EMAIL PROTECTED] wrote: On Apr 24, 7:16 am, Jasper [EMAIL PROTECTED] wrote: 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