python syntax for conditional is unfortunate

Roy Smith roy at
Wed Sep 24 04:47:35 CEST 2008

"Aaron \"Castironpi\" Brady" <castironpi at> wrote:

> You're out of options.  You have to express it somehow. 

How about:

Assignith z the value of x if the value of b is such that it is true, else 
assignith it the value of y.  Assignith z not the value of w, nor the value 
of v, lest you raise NameError upon thy stack trace.

More information about the Python-list mailing list