PEP 308: "then" "else" for deprecating "and" "or" side effects
Terry Reedy
tjreedy at udel.edu
Tue Feb 18 16:10:35 EST 2003
"Mike Orr" <mso at oz.net> wrote in message
news:a66bffb1.0302181223.4160e57 at posting.google.com...
> The fact that people try to use 'and ... or' so broadly for this
shows
> that something is missing. Only one little tweak is needed: an
> alternative construct that faithfully returns 'b' if 'b' is false.
(not a or b) and c
But I would also like to have one syntax that covers all cases.
Terry J. Reedy
More information about the Python-list
mailing list