how to use class methods?

Emile van Sebille emile at fenx.com
Fri Sep 22 11:54:19 CEST 2000


Take a look at __bases__ as in :


>>> class E(C,D):
 pass

 >>> E.__bases__
(<class __console__.C at 00B2D27C>, <class __console__.D at
00B3143C>)

HTH

--

Emile van Sebille
emile at fenx.com
-------------------


"Mike 'Cat' Perkonigg" <blablu at gmx.net> wrote in message
news:8FB776878mikecat at 192.168.10.38...
> Hi!
>
> How can I create a class method?
>
> I want to get a list of all classes a class is inherited
from (up to the root
> class) but without creating instances of this classes.
>
> Regards,
> Mike




More information about the Python-list mailing list