[issue29101] Nested lambdas in setattr() lose context in Python 2.7

Victor Liu report at bugs.python.org
Wed Dec 28 22:58:24 EST 2016


New submission from Victor Liu:

I would expect bug.py to output:
foo
bar
baz

but instead we observe:
baz
baz
baz

Replicated on Windows 10 Home Edition, Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]

----------
files: bug.py
messages: 284224
nosy: Victor Liu
priority: normal
severity: normal
status: open
title: Nested lambdas in setattr() lose context in Python 2.7
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file46069/bug.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29101>
_______________________________________


More information about the Python-bugs-list mailing list