Conditional iteration

greg greg at cosc.canterbury.ac.nz
Fri Dec 15 01:16:18 EST 2006


at wrote:

> I think by approving
> 
> a = b if condition else c

Again, this allows something to be written as an
expression that formerly could only be written as
a statement, which is a much bigger gain than just
crunching two statements into one.

--
Greg



More information about the Python-list mailing list