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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29101>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to