Josiah Carlson wrote: > >>> 1 is not True > True > >>> 1 == True > True > >>> isinstance(True, int) > True >
This makes perfect sense to me. 'True' is implicitly convertible to, but not identical to, 1. (I was about to type a long-winded explanation of why this makes sense from a historical and philosophical perspective, but I think I'll just skip it for now.) -- Talin _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
