[Info] PEP 308 accepted - new conditional expressions

Eric Nieuwland eric.nieuwland at xs4all.nl
Tue Oct 11 02:01:45 EDT 2005


Dave Hansen wrote:
> And Basic, and Fortran, and Lisp, and just about any programming
> language you care to name, including python (if Condition: Affirmative
> else: Negative).
>
> Not to mention that the sequence is identical to execution order.
> It's just plain goofy to have to scan to the middle of an expression
> to find out what happens first, then depending on the result of that,
> skipping back over what you just skipped.

1 word: Perl

> FWIW, in over 20 years of C programming, I use it pretty rarely too,
> though I never had to look it up after I first saw it in K&R. It only
> very rarely holds any advantage over a simple if/else statement,
> especially in modern compilers. It's most useful in macros, which
> python doesn't even have.

same time span and I used it zillions of times

==eric




More information about the Python-list mailing list