PEP-308 a "simplicity-first" alternative

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Thu Feb 13 03:13:51 CET 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