type, object hierarchy?
hniksic at xemacs.org
Mon Feb 4 08:49:53 CET 2008
7stud <bbxx789_05ss at yahoo.com> writes:
> (<class '__main__.Dog'>, <class '__main__.Mammals'>, <type 'object'>)
> The output suggests that Dog actually is a subclass of type--despite
> the fact that issubclass(Dog, type) returns False.
What was it in the output that gave you the impression that Dog is a
subclass of type? The last entry is only for the "object" type, which
you already knew Dog was a subclass of.
More information about the Python-list