On Sun, Nov 2, 2008 at 1:16 PM, Michel Perez <opsbat@infomed .sld.cuwrote:
Help on built-in function issubclass in module __builtin__:
issubclass(...)
issubclass(C, B) -bool
Return whether class C is a subclass (i.e., a derived class) of class B.
When using a tuple as the second argument issubclass(X, (A, B, ...)),
is a shortcut for issubclass(X, A) or issubclass(X, B) or ... (etc.).
Cheers,
Chris
--
Follow the path of the Iguana...
HI all:
>
imagine something like this:
>
class father:
pass
class son( father ):
pass
>
I need to know the son ancestor class how can i know this.
>
imagine something like this:
>
class father:
pass
class son( father ):
pass
>
I need to know the son ancestor class how can i know this.
issubclass(...)
issubclass(C, B) -bool
Return whether class C is a subclass (i.e., a derived class) of class B.
When using a tuple as the second argument issubclass(X, (A, B, ...)),
is a shortcut for issubclass(X, A) or issubclass(X, B) or ... (etc.).
Cheers,
Chris
--
Follow the path of the Iguana...
>
Thanks
>
>
---------------------------------------
Red Telematica de Salud - Cuba
CNICM - Infomed
--
>
Thanks
>
>
---------------------------------------
Red Telematica de Salud - Cuba
CNICM - Infomed
--
>