Eric V. Smith <e...@trueblade.com> added the comment:

Python thinks that `g` inside `f()` is a local variable. See 
https://stackoverflow.com/questions/9264763/unboundlocalerror-in-python#9264845 
for an explanation.

This is working as intended.

----------
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34291>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to