Equivalent to (a ? b : c) ?

Wm. King wjk at wjk.mv.com
Wed Dec 29 21:24:27 EST 1999


((x and [val1]) or [val2])[0]

equivalent to C:     x ? val1 : val2





More information about the Python-list mailing list