Paul Rubin <no.em...@nospam.invalid> writes:

> Steven D'Aprano <st...@remove-this-cybersource.com.au> writes:
>> Incorrect. bools *are* ints in Python, beyond any doubt.
>
>     Python 2.6.2 (r262:71600, Jun  4 2010, 18:28:58) 
>     >>> type(3)==type(True)
>     False

Of course, but it's the wrong thing to ask if you want know if bools are
ints.  To find out via their types, you should ask:

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
>>> issubclass(type(True), type(3))
True

-- 
Arnaud
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to