Message95672
`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. |
|
Date |
User |
Action |
Args |
2009-11-24 12:44:18 | pitrou | set | recipients:
+ pitrou, surkamp, flox |
2009-11-24 12:44:18 | pitrou | set | messageid: <1259066658.15.0.705800642093.issue7390@psf.upfronthosting.co.za> |
2009-11-24 12:44:16 | pitrou | link | issue7390 messages |
2009-11-24 12:44:16 | pitrou | create | |
|