Message101554
In a sense, *all* objects are instances of new-style classes in 2.x, including instances of old-style classes (which are instances of the InstanceType type, which is a type, and hence a new-style class).
You may want to look at the __flags__ property of the type object. If it is a heap type, there is a good chance that it was created through a class statement. Alternatively, you can look at the type's __module__, and find out whether the module is a Python module. |
|
Date |
User |
Action |
Args |
2010-03-22 23:52:27 | loewis | set | recipients:
+ loewis, ericp |
2010-03-22 23:52:27 | loewis | set | messageid: <1269301947.87.0.919499499701.issue8206@psf.upfronthosting.co.za> |
2010-03-22 23:52:26 | loewis | link | issue8206 messages |
2010-03-22 23:52:26 | loewis | create | |
|