
report at bugs
Nov 24, 2009, 4:44 AM
Post #3 of 4
(194 views)
Permalink
|
Antoine Pitrou <pitrou [at] free> added the comment: `instance` means it is an instance of an old-style class. Old-style classes are classes which don't have `object` in their inheritance hierarchy. On the other hand, for instance new-style classes type() returns the actual class. Bottom line: this is by design. Of course in an ideal world (or in Python 3) there are only new-style classes, but we had to maintain compatibility, and that's why there are two slightly different object models cohabiting in Python 2.x. ---------- nosy: +pitrou resolution: -> invalid _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7390> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|