ternary operator

Chad Netzer cnetzer at mail.arc.nasa.gov
Wed Feb 5 20:52:43 EST 2003


On Wed, 2003-02-05 at 17:05, Paul Foley wrote:
> On 05 Feb 2003 09:49:33 -0500, Christopher A Craig wrote:

> > if a: x = b
> > else: x = c
> 
> Urk.  There really ought to be a PSU death squad dedicated to hunting
> down people who write code like that!

Well, earlier I posted the "x = (b,c)[not a]" non-idiom.

Do I need to get some bullet-proof underwear?

-- 
Bay Area Python Interest Group - http://www.baypiggies.net/

Chad Netzer
(any opinion expressed is my own and not NASA's or my employer's)







More information about the Python-list mailing list