if the else short form

Paul Rubin no.email at nospam.invalid
Sat Oct 2 07:19:14 CEST 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