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-April/022271.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 typeStuart Bishop zen@shangri-la.dropbear.id.au
Thu, 4 Apr 2002 16:22:40 +1000
On Thursday, April 4, 2002, at 02:22  PM, Stuart Bishop wrote:

> On a side note, writing 'i or False and True' performs much better
> than bool(i) in the test implementation, and flow control statements
> involving ints are perform much better than flow control using bool.
> Will there be a performance degredation in the final version, or
> can this be avoided?

I fixed my test to not do a global lookup on True and flow control
is no longer slower.

now-+1-if-anyone-cares-but-lets-see-what-another-100-posts-do-ly y'rs

--
Stuart Bishop <zen@shangri-la.dropbear.id.au>
http://shangri-la.dropbear.id.au/





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