[Tutor] Re: Operators
Charlie Clark
charlie@begeistert.org
Sat May 3 17:04:02 2003
On 2003-05-03 at 18:00:05 [+0200], tutor-request@python.org wrote:
>
> Magnus is referring to a feature that's being argued on the
> comp.lang.python list, the "If-then-else expression" Python Enhancement
> Proposal:
>
> http://www.python.org/peps/pep-0308.html
eek! I've just read the proposal. How do we stop this nonsense? I vote
against it!
You can write
if x: y(); else: z()
in one line already and I for one can't see any functional difference
between this kind of statement and the proposed "ternary operator" and this
looks like a very special case to me.
But maybe I'm missing something? Can the gurus enlighten me?
Charlie