Benjamin Peterson <[email protected]> added the comment: 2012/4/26 Q <[email protected]>: > 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. ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue14671> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
