[Samuele Pedroni] > ... > If *I* was about to separate bool from int > (but for that I would need to be conviced about the errors > I'm going to avoid with that), > both int(False) and int(True) would fail - I mean - their result > is as much intuitive as summing booleans directly <wink>. > ... > So I would introduce a specific built-in > for that conversion (maybe chi() <wink>). That's the function operator.truth() serves -- or would have, if Guido hadn't broken it <wink>.
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