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 <ncogh...@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.
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/CI4U5VOEKZFJ26IETN3FYRZOZRDWDCP3/