PEP-308 a "simplicity-first" alternative
Chermside, Michael
mchermside at ingdirect.com
Thu Feb 13 12:06:20 EST 2003
Bengt Richter writes:
> If you understand
> x and y or b
[...other arguments follow...]
Yes, but what if you don't?
While the idiom might WORK, it's by no means READABLE
(except to people who are already familiar with the
idiom). Imagine showing it to a non-programmer, or a
beginning programmer, or even to a programmer with
years of experience but who had never seen this particular
idiom!
One of the reasons why I WANT a conditional operator
is so I will stop encountering clever "tricks" like
and-or in place of readable code.
-- Michael Chermside
More information about the Python-list
mailing list