New submission from Frederick Ross <[email protected]>:
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 <[email protected]>
<http://bugs.python.org/issue14891>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com