Another conditional expression candidate (PEP 308)

Andrew Koenig ark at research.att.com
Mon Feb 10 06:40:20 CET 2003


>> 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?

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list