[New-bugs-announce] [issue14891] An error in bindings of closures
Frederick Ross
report at bugs.python.org
Wed May 23 18:19:36 CEST 2012
New submission from Frederick Ross <madhadron at gmail.com>:
The following code throws an UnboundLocal error:
def f(x):
def g():
x = x + "a"
return x
return g()
f("b")
----------
components: None
messages: 161432
nosy: Frederick.Ross
priority: normal
severity: normal
status: open
title: An error in bindings of closures
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14891>
_______________________________________
More information about the New-bugs-announce
mailing list