PEP-308 a "simplicity-first" alternative
woetzel at gmd.de
Wed Feb 12 10:33:26 CET 2003
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>)
More information about the Python-list