A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/022382.html below:

[Python-Dev] PEP 285: Adding a bool type

[Python-Dev] PEP 285: Adding a bool type [Python-Dev] PEP 285: Adding a bool typeGuido van Rossum guido@python.org
Fri, 05 Apr 2002 11:31:01 -0500
> Stuart> I mean (i and True) or (i or False)
> 
> This example might evaluate i twice, which means it's not really a
> fair comparison.

But the correct form (i and True or False) still performs faster than
bool(i).  I'm not sure I care though.

--Guido van Rossum (home page: http://www.python.org/~guido/)




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