PEP-308 a "simplicity-first" alternative

Terry Reedy tjreedy at udel.edu
Wed Feb 12 20:36:16 EST 2003


"Bjorn Pettersen" <BPettersen at NAREX.com> wrote in message
news:mailman.1045095195.25260.python-list at python.org...
> From: Bengt Richter [mailto:bokr at oz.net]
>> I think I have an answer:
>>     result = cond and {true_value} or false_value

>Yes, we got you the first three times <wink>. Your proposal
> 1. Doesn't give any indication that the expression is
>    a selection (i.e. the same as x and y or b).

Given that 'and' and 'or' are best described as conditional selection
operators (explaining this is another post not yet written), it is
straightforward that together they form a conditional selection
expression.

Terry J. Reedy






More information about the Python-list mailing list