For review: PEP 308 - If-then-else expression
James J. Besemer
jb at cascade-sys.com
Mon Feb 10 14:09:53 EST 2003
Erik Max Francis wrote:
> Evan wrote:
>
>
>>t = (if "spam" not in s: "customer"
>> elif "eggs" in s: "vikings"
>> else: "waitress")
>
>
> This was one of the forms I suggested way back when.
>
I'm growing to REALLY LIKE this alternative.
--jb
--
James J. Besemer 503-280-0838 voice
2727 NE Skidmore St. 503-280-0375 fax
Portland, Oregon 97211-6557 mailto:jb at cascade-sys.com
http://cascade-sys.com
More information about the Python-list
mailing list