[ x for x in xrange(10) when p(x) ]
bonono at gmail.com
bonono at gmail.com
Fri Nov 11 02:23:03 EST 2005
Bengt Richter wrote:
> IOW, your "when condition(x)" (IIUIC) can be spelled "if condition(x) or stop()"
neat trick.
More information about the Python-list
mailing list