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/2004-September/048952.html below:

[Python-Dev] ANN: PEP 335: Overloadable Boolean Operators

[Python-Dev] ANN: PEP 335: Overloadable Boolean Operators [Python-Dev] ANN: PEP 335: Overloadable Boolean OperatorsGreg Ewing greg at cosc.canterbury.ac.nz
Thu Sep 16 03:46:52 CEST 2004
> Consider also this:
>    x and 4 or 5
> which is of course a common idiom to workaround the lack of an 
> if-then-else expression.

Actually, I hope it isn't common, because it's flawed.
It doesn't always work properly even with current
Python semantics.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+
More information about the Python-Dev mailing list

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