This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lys.nikolaou
Recipients Esa.Peuha, Mark.Shannon, RJ722, Rosuav, cheryl.sabella, lys.nikolaou, mbussonn, ncoghlan, pablogsal, r.david.murray, terry.reedy
Date 2020-06-30.18:00:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593540024.69.0.519070645017.issue19335@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2020-06-30 18:00:24lys.nikolaousetrecipients: + lys.nikolaou, terry.reedy, ncoghlan, r.david.murray, Mark.Shannon, Rosuav, Esa.Peuha, mbussonn, cheryl.sabella, pablogsal, RJ722
2020-06-30 18:00:24lys.nikolaousetmessageid: <1593540024.69.0.519070645017.issue19335@roundup.psfhosted.org>
2020-06-30 18:00:24lys.nikolaoulinkissue19335 messages
2020-06-30 18:00:24lys.nikolaoucreate