type, object hierarchy?

7stud bbxx789_05ss at yahoo.com
Mon Feb 4 00:31:44 EST 2008


On Feb 3, 10:28 pm, 7stud <bbxx789_0... at yahoo.com> wrote:
> From the docs:
>
> issubclass(class, classinfo)
> Return true if class is a subclass (direct or indirect) of classinfo.


print issubclass(Dog, object)  #True
print issubclass(type, object)  #True
print issubclass(Dog, type)   #False



More information about the Python-list mailing list