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/020951.html below:

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

[Python-Dev] For review: PEP 285: Adding a bool typeGerald S. Williams gsw@agere.com
Mon, 11 Mar 2002 16:50:49 -0500
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)
>>> 1 is True, 2 is True, [] is False
(False, False, False)
>>> bool(1) is True, bool(2) is True, bool([]) is False
(True, True, True)

-Jerry

-O Gerald S. Williams, 22Y-103GA : mailto:gsw@agere.com O-
-O AGERE SYSTEMS, 555 UNION BLVD : office:610-712-8661  O-
-O ALLENTOWN, PA, USA 18109-3286 : mobile:908-672-7592  O-




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