Lysandros Nikolaou <lisandros...@gmail.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue19335>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to