For review: PEP 308 - If-then-else expression

François Pinard pinard at iro.umontreal.ca
Sat Feb 8 19:52:30 EST 2003


[Tim Peters]

> [Tim]
> > Just noting that if the proposal is accepted, we can get rid of
> > those pesky "and" and "or" operators:
> >
> >     x and y    same_as    y if x else x
> >     x or y     same_as    x if x else y
> >
> > Removing two things each time a new one is added is an effective way
> > to keep the language small <wink>.

> At least one of these two statements is true:

> 1. I was joking.

Fair enough!  I should know you better... :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard





More information about the Python-list mailing list