Proposed new conditional operator: "or else"

Andrea D'Amore anddamNOPSAM+gruppi at brapi.net
Tue Dec 2 16:41:00 EST 2014


On 2014-12-02 17:41:06 +0000, Zachary Ware said:

>> foo == 42 or else

> Never going to happen, but I like it!  Perhaps raise IntimidationError
> instead of AssertionError when it fails?

That should probably be a DONTPANICError in large, friendly terminal 
font letters.

-- 
Andrea




More information about the Python-list mailing list