if the else short form

Paul Rubin no.email at nospam.invalid
Sat Oct 2 01:19:14 EDT 2010


Steven D'Aprano <steve at 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



More information about the Python-list mailing list