> And, of course, if you really want short-circuiting, you can write this: > > result=[lambda:value-if-false, lambda:value-if-true][condition]() > I like it except I'd add "[not not condition]" to ensure a 0 or a 1. Justin Shaw