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 pablogsal
Recipients Esa.Peuha, Mark.Shannon, RJ722, Rosuav, cheryl.sabella, lys.nikolaou, mbussonn, ncoghlan, pablogsal, r.david.murray, terry.reedy
Date 2020-06-30.18:10:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593540611.28.0.180731800285.issue19335@roundup.psfhosted.org>
In-reply-to
Content
> At least the fact that the SyntaxError message is some for both of

Well, is the same because the semantics are the same: a symbol is missing in the expected scopes. The only difference is that in the first case is not even possible to "fix it" because that scope cannot exist if the function is not 'nested'. But I do agree that it may be some value on specializing the error message to that case (but is not enough to have the nesting, you would need also to add a variable - the error is really 'you need a symbol in an intermediate scope' -> 'Oh, i don't even have an intermediate scope' -> 'then *first* you need to add an intermediate scope). Although this particular problem is indeed different from the main one (the one about codeop).
History
Date User Action Args
2020-06-30 18:10:11pablogsalsetrecipients: + pablogsal, terry.reedy, ncoghlan, r.david.murray, Mark.Shannon, Rosuav, Esa.Peuha, mbussonn, cheryl.sabella, lys.nikolaou, RJ722
2020-06-30 18:10:11pablogsalsetmessageid: <1593540611.28.0.180731800285.issue19335@roundup.psfhosted.org>
2020-06-30 18:10:11pablogsallinkissue19335 messages
2020-06-30 18:10:11pablogsalcreate