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 loewis
Recipients ericp, loewis
Date 2010-03-22.23:52:26
SpamBayes Score 0.00016197274
Marked as misclassified No
Message-id <1269301947.87.0.919499499701.issue8206@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-03-22 23:52:27loewissetrecipients: + loewis, ericp
2010-03-22 23:52:27loewissetmessageid: <1269301947.87.0.919499499701.issue8206@psf.upfronthosting.co.za>
2010-03-22 23:52:26loewislinkissue8206 messages
2010-03-22 23:52:26loewiscreate