Message159439
| Author |
benjamin.peterson |
| Recipients |
benjamin.peterson, georg.brandl, thread13 |
| Date |
2012年04月27日.04:13:08 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAPZV6o-ssQ7YgMNvgthqtpJ=1RK=ZSnWfjrL5a9hVxreTxHa1w@mail.gmail.com> |
| In-reply-to |
<1335495526.15.0.298160882509.issue14671@psf.upfronthosting.co.za> |
| Content |
2012年4月26日 Q <report@bugs.python.org>:
> issubclass(obj.__class__, object)
>
> to be the official way to distinguish between the new-style and the old-style classes?
Just do type(cls) is types.ClassType. |
|