Barry A. Warsaw <ba...@python.org> added the comment:

> OTOH This would require a PEP change, formal review, etc.

It would be trivial though.  There are only two references to TargetScopeError 
in the PEP.  One talks about adding the exception and the other just mentions 
it almost in passing as a subclass of SyntaxError.

I think it would be better to just use SyntaxError.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37757>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to