Stefan Krah <ste...@bytereef.org> added the comment: I guess I'd vote for closing this, because the first Google result for "no binding for nonlocal" on Stackoverflow is quite clear.
The ideal message would be "'a' cannot be both global and nonlocal", but it would probably complicate the compiler ever so slightly. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32361> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com