How to find out which functions exist?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Oct 23 23:20:48 CEST 2007


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



More information about the Python-list mailing list