[issue35029] Convert SyntaxWarning exception raised at code generation time to a SyntaxError

2018-10-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35029] Convert SyntaxWarning exception raised at code generation time to a SyntaxError

2018-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d31e7730cd5d74efbd7320751dacd51d09cc415d by Serhiy Storchaka in branch 'master': bpo-35029: Replace the SyntaxWarning exception with a SyntaxError. (GH-) https://github.com/python/cpython/commit/d31e7730cd5d74efbd7320751dacd51d09cc415d

[issue35029] Convert SyntaxWarning exception raised at code generation time to a SyntaxError

2018-10-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +9341 stage: -> patch review ___ Python tracker ___ ___

[issue35029] Convert SyntaxWarning exception raised at code generation time to a SyntaxError

2018-10-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : SyntaxError contains more useful information than SyntaxWarning, and SyntaxError is special cased in tracebacks for better reporting. When SyntaxWarning is raised as an exception, the error report doesn't contain information about the source. It is hard