A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/020909.html below:

[Python-Dev] Boolean transition

[Python-Dev] Boolean transition [Python-Dev] Boolean transitionTim Peters tim.one@comcast.net
Sun, 10 Mar 2002 20:19:00 -0500
[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