Steven D'Aprano added the comment:
> > Perhaps the check needs to be limited to just the exact type.
> Looks reasonable to me. Do you want to provide a PR Martijn?
You realise that is making the current traceback *less* informative
instead of more informative? I think that's going backwards -- useful
information about the syntax errors are being discarded. "Practicality
beats purity" -- the current behaviour is helpful, even if it mixes
information about two errors into one traceback.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list