[Python-Dev] Py2.5 release schedule (original) (raw)

Georg Brandl g.brandl at gmx.net
Sun Jul 30 22:17:41 CEST 2006


Barry Warsaw wrote:

if isinstance(obj, ClassType)

which fails in Python 2.5. I actually rewrote it like so: if isinstance(obj, ClassType) or isinstance(obj, type(type))

The second "type" seems to be superfluous. ;)

Georg



More information about the Python-Dev mailing list