Barry A. Warsaw <ba...@python.org> added the comment:
I know the PEP defines TargetScopeError as a subclass of SyntaxError, but it doesn't really explain why a subclass is necessary. I think seeing "TargetScopeError" will be a head scratcher. Why not just SyntaxError without introducing a new exception? ---------- nosy: +barry _______________________________________ 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