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