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

Tim Peters tim_one at email.msn.com
Sat Feb 8 10:35:03 CET 2003


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>.






More information about the Python-list mailing list