v = None x = v or 'foo'
I get a syntax error. Aren't boolean expressions valid on the right hand side of an assignment? I'd imagine that this evals to 'foo'.
Bill