"Skip Montanaro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > value = d.get('x') or bsf() > > Of course, this bsf() will get called if d['x'] evaluates to false, not > just > None,
value = (d.get('x') is not None) or bsf() #?? tjr -- http://mail.python.org/mailman/listinfo/python-list