Re: Good code patterns in Python
by Bernhard Herzog other posts by this author
Jul 2 2003 11:06AM messages near this date
Re: Good code patterns in Python
|
Re: Good code patterns in Python
Erik Max Francis <max@[...].com> writes:
> The
> complete solution to this would probably be a conditional expression,
> e.g.:
>
> variable = (if condition: someValue else: otherValue)
>
> eliminating the duplication which can lead to errors. (Python, of
> course, doesn't have such a construct, and the silence after the
> conditional expression PEP vote and the long silence thereafter suggests
> that it never will.)
Guido broke his silence at EuroPython: The ternary operator will not be
added to Python.
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
Will Stuyvesant
Ben Finney
Erik Max Francis
Bernhard Herzog
holger krekel
Kirk Job-Sluder
Erik Max Francis
Dennis Lee Bieber
Jiri Barton
Lulu of the Lotus-Eaters
Terry Reedy
Steven Taschuk
Michele Simionato
|