PEP-308 a "simplicity-first" alternative

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Wed Feb 12 21:13:51 EST 2003


> From: Bengt Richter [mailto:bokr at oz.net]
> 
>     result = cond and {true_value} or false_value

I don't think anyone has mentioned this yet, but the proposed sets notation blows this out of the water.

This would be equivalent to

result = cond and set([true_value]) or false_value

Tim Delaney





More information about the Python-list mailing list