PEP-308 a "simplicity-first" alternative

Delaney, Timothy C (Timothy) tdelaney at
Thu Feb 13 03:13:51 CET 2003

> From: Bengt Richter [mailto:bokr at]
>     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