Voting for PEP 308 (was Re: For review: PEP 308 - If-then-els e expression)

laotseu bdesth at
Wed Feb 12 06:00:39 CET 2003

sismex01 at wrote:
>>From: Hans Nowak [mailto:wurmy at]
>>Sent: Tuesday, February 11, 2003 11:34 AM
>>Hmm, what if bools grew an if() method?  We could then write:
>>   z = (x == y).if(whentrue, whenfalse)
>>This strikes me as much more elegant than the other proposals.

This strikes me as somewhat smallTalkish !-)


More information about the Python-list mailing list