Eric V. Smith <e...@trueblade.com> added the comment:
This is by design. See https://eli.thegreenplace.net/2011/05/15/understanding-unboundlocalerror-in-python for a good explanation. ---------- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39818> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com