Georg Brandl <ge...@python.org> added the comment:

This is a result of how old-style classes are implemented.

If you look at type(Old()), you can see that it isn't Old, but "instance".

(And "instance" is a subclass of object again.)

"issubclass" for old-style classes doesn't check type(o) but o.__class__, which 
are different: the former is "instance" and the latter your class.  That is one 
reason we removed old-style classes in Python 3...

----------
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14671>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to