if the else short form

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Oct 5 01:53:37 EDT 2010


In message <mailman.1166.1285774349.29448.python-list at python.org>, Philip 
Semanchuk wrote:

> Does Python make any guarantee that int(True) == 1 and int(False) == 0
> will always hold, or are their values an implementation detail?

There has never been a rationally-designed language where this was merely 
“an implementation detail”.



More information about the Python-list mailing list