Determine an object is a subclass of another

abcd codecraig at gmail.com
Tue Jan 9 10:01:31 EST 2007


yea i meant to have animal extend thing and dog extend animal....my
mistake.

anyways, is there a way to check without having an instance of the
class?

such as,

isinstance(Dog, (Animal, Thing)) ??

thanks




More information about the Python-list mailing list