"Gerald S. Williams" wrote: > > Please don't take this as a real endorsement, and YMMV to > be sure, but somehow this seems right to me given the way > Python currently determines "truth": > > >>> 1 == True, 2 == True, [] == False > (True, True, True) I'm confident that will never be the case. if x: ... should be considered a shortcut syntax for if bool(x): ... That says nothing about the equality of the object x and one of the two truth constants. Paul Prescod
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4