[Python-ideas] If branch merging
rosuav at gmail.com
Thu Jun 11 01:38:55 CEST 2015
On Thu, Jun 11, 2015 at 8:16 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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.
Yeah. I now have a brutal hack that does exactly that, so I'm fully
expecting someone to point out "Uhh, this isn't going to work
More information about the Python-ideas