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/2003-February/033085.html below:

[Python-Dev] Trinary Operators

[Python-Dev] Trinary Operators [Python-Dev] Trinary OperatorsAndrew Koenig ark@research.att.com
Thu, 6 Feb 2003 12:07:31 -0500 (EST)
Guido> I think I've seen the suggestion

Guido>     x = (y if y>z else z)

Guido> :-)

That's not bad, even though it looks Perlish :-)

It has the advantage of looking like a list comprehension.

I presume the parentheses would be mandatory.




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