This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients flox, pitrou, surkamp
Date 2009-11-24.12:44:16
SpamBayes Score 0.009232026
Marked as misclassified No
Message-id <1259066658.15.0.705800642093.issue7390@psf.upfronthosting.co.za>
In-reply-to
Content
`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.
History
Date User Action Args
2009-11-24 12:44:18pitrousetrecipients: + pitrou, surkamp, flox
2009-11-24 12:44:18pitrousetmessageid: <1259066658.15.0.705800642093.issue7390@psf.upfronthosting.co.za>
2009-11-24 12:44:16pitroulinkissue7390 messages
2009-11-24 12:44:16pitroucreate