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. > I've tried googling, but apparently my search term Fu is weak. :-( > > Can anyone help me out here? There must be something simple. >
It's very odd that you need to know a class's parent. I'm interested in hearing why you need this. In all my years, I've never had to do this. Regardless, I believe you are looking for __bases__. -- http://mail.python.org/mailman/listinfo/python-list