
Aug. 9, 2019
11:05 a.m.
Thanks Nick. I find yours (and Eric’s) argument compelling. I’m totally aligned with using SyntaxError in 3.8 and thinking through the more general problem for 3.9. Cheers, -Barry
On Aug 9, 2019, at 06:44, Nick Coghlan <ncoghlan@gmail.com> wrote:
Short version of my more detailed answer below:
While my rationale is different from Barry's, I've convinced myself that the right thing to do for Python 3.8 is to remove the new TargetScopeError and have these cases all just raise SyntaxError.
I do still see potential value in a new "AssignmentScopeError" subclass, but it would apply to more than just these new exceptions, and can be considered on a more leisurely basis for Python 3.9.