[Python-ideas] If branch merging

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jun 11 00:16:55 CEST 2015


Chris Angelico wrote:
> How hard would it be to hack the bytecode compiler to treat two names
> as distinct despite appearing the same?

Back when list comprehensions were changed to not leak
the variable, it was apparently considered too hard to
be worth the effort, since we ended up with the nested
function implementation.

-- 
Greg


More information about the Python-ideas mailing list