For review: PEP 308 - If-then-else expression

Samuele Pedroni pedronis at
Tue Feb 11 20:07:21 CET 2003

"Andrew Koenig" <ark at> ha scritto nel messaggio
news:yu99smuuhck0.fsf at
> Samuele> "Andrew Koenig" <ark at> ha scritto nel
> Samuele> messaggio news:yu99n0l2pvtj.fsf at  I
> Samuele> don't like the naive questions that if: else: statement
> Samuele> vs. if: else: conditional expression could generate.
> >> Such as?
> Samuele> You should not assume that people have done their homework
> Samuele> when they ask this kind of thing or that they have a firm
> Samuele> grasp of the conceptual framework of things, people typically
> Samuele> come with "why this does not work?"  and you think: it is
> Samuele> clear that it cannot work.
> In other words, it is clear to you.  However, you might be mistaken.

the kind of thing was referring to potential naive questions, not my

> Samuele> (if x>0: print "positive" else: print "negative")
> Samuele> (for x in l: print x)
> I have solved that problem.  Details shortly.

what problem?

More information about the Python-list mailing list