Steven D'Aprano <ste...@remove.this.cybersource.com.au> writes:
> for x in a or b or c:
>     do_something_with(x)

Ugh!!!!

  for x in [a,b,c]:
     if len(x) > 0:
       do_something_with(x)
       break
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to