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

laotseu bdesth at removethis.free.fr
Wed Feb 12 06:00:39 CET 2003


sismex01 at hebmex.com wrote:
>>From: Hans Nowak [mailto:wurmy at earthlink.net]
>>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 !-)

Laotseu






More information about the Python-list mailing list