On Sun, 12 Oct 2008 05:30:33 +0000, Steven D'Aprano wrote:

> Use short-circuit Booleans:
> 
> y = x or "blah"

Except of course you don't use x, you use the complex expression.

y = (some complex expression) or "blah"



Sorry for the itchy posting finger.



-- 
Steven
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to