Lysandros Nikolaou <[email protected]> added the comment:
That's right, but the SyntaxError message is somewhat confusing. At least the
fact that the SyntaxError message is some for both of
def a():
def b():
nonlocal x
and
def a():
nonlocal x
seems a bit misleading. No?
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue19335>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com