PEP-308 a "simplicity-first" alternative
Gerd Woetzel
woetzel at gmd.de
Wed Feb 12 04:33:26 EST 2003
Hi,
I cannot resist. This is the first (and only) proposal that I would support:
holger krekel <pyth at devel.trillke.net> writes:
>I am still wondering if there is a simple way to fix the current
>ternary op "x and y or z". Everybody knows by now that
>this "fails" if y is a false value. Otherwise
>it works ok and is used in today's code everywhere.
>Inspired by "do the simplest thing that can possibly work"
>i now think that
> x and y else z
(Sorry Tim, we still need "and" and "or" <wink>)
Cheers,
Gerd
More information about the Python-list
mailing list