[Info] PEP 308 accepted - new conditional expressions
Paul Rubin
http
Sat Oct 1 02:52:34 EDT 2005
Reinhold Birkenfeld <reinhold-birkenfeld-nospam at wolke7.net> writes:
> For a conditional, syntax must be found, and the tradition of Python
> design is not to use punctuation for something that can be solved with
> keywords.
Yeah, "if C then A else B" is a ancient tradition stretching from
Algol-60 to OCAML, and who knows what all else in between. I'm not
sure what Guido saw in the "A if C else B" syntax but it's not a big deal.
More information about the Python-list
mailing list