[Tutor] Multiple for and if/else statements into a single list comprehension

Peter Otten __peter__ at web.de
Mon Mar 17 12:22:55 CET 2014


Peter Otten wrote:

>  [locals()] does not capture
> the loop vars of genexps (all pythons) and listcomps (python3).

Sorry, I was totally wrong on that one.



More information about the Tutor mailing list