Re: Good code patterns in Python
by holger krekel other posts by this author
Jul 2 2003 1:43PM messages near this date
Re: Good code patterns in Python
|
Re: Good code patterns in Python
Bernhard Herzog wrote:
> 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.
and there was great joy especially among the people who didn't find an
easy way to vote "no" :-)
Actually Guido made it pretty clear that he will be very careful about
adding language features especially at the syntax level. Moreover, for
Python-3 he plans to throw out some stuff like the string-module ...
cheers,
holger
--
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
|