Another conditional expression candidate (PEP 308)

Samuele Pedroni pedronis at bluewin.ch
Mon Feb 10 00:49:10 EST 2003


"Andrew Koenig" <ark at research.att.com> ha scritto nel messaggio
news:yu9965rsk81n.fsf at europa.research.att.com...
> >> Why is this any more confusing than the fact that
>
> >> result = x +
> >> y +
> >> z
>
> >> is illegal?
>
> Samuele> x+
> Samuele>  y+
> Samuele>  z
>
> Samuele> is not a valid statement.
>
> And I am not proposing that
>
>      result = if cond:
>          x
>      else:
>          y
>
> should be a valid statement either.
>
> So where is the problem?

I have only explained the more.






More information about the Python-list mailing list