Testing for is-kind-of relationships (at runtime)
Alain Desilets
Alain.Desilets at nrc.ca
Thu Jan 18 18:17:56 EST 2001
Is there a way in Python to test for "is-kind-of" relationships?
For example, suppose x is an instance of A which is a subclass of B
which is a subclass of C. I want to be able to ascertain at run time
that x is a descendant of class C.
Thanks.
--
Alain Désilets
Research Officer
National Research Council Canada
Institute for Information Technology
Agent de recherche
Conseil national de recherche Canada
Institut de technologies de l'information
email/courriel: alain.desilets at iit.nrc.ca
---
Arguing with an engineer is like mud wrestling with a pig.
You soon realize you both enjoy it.
---
More information about the Python-list
mailing list