python syntax for conditional is unfortunate

Roy Smith roy at panix.com
Tue Sep 23 22:47:35 EDT 2008


"Aaron \"Castironpi\" Brady" <castironpi at gmail.com> 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