isinstance(False, int)

mk mrkafk at gmail.com
Fri Mar 5 18:14:16 CET 2010


 >>> isinstance(False, int)
True
 >>>
 >>> isinstance(True, int)
True

Huh?

 >>>
 >>> issubclass(bool, int)
True

Huh?!

Regards,
mk






More information about the Python-list mailing list