On Tue, 23 Oct 2007 21:10:04 +0000, mrstephengross wrote:

> Let's say I have a python file with a base class, and a few derived
> classes:
> 
> class Base:
>   pass
> 
> class Derived1(Base):
>   pass
> 
> class Derived2(Base):
>   pass
> 
> Is there a way I can find out the classes that have been derived from
> Base?

Take a look at the `issubclass()` function.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to