[issue40593] Improve error reporting for invalid character in source code

2020-05-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40593] Improve error reporting for invalid character in source code

2020-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 74ea6b5a7501fb393cd567fb21998d0bfeeb267c by Serhiy Storchaka in branch 'master': bpo-40593: Improve syntax errors for invalid characters in source code. (GH-20033) https://github.com/python/cpython/commit/74ea6b5a7501fb393cd567fb21998d0bfeeb2

[issue40593] Improve error reporting for invalid character in source code

2020-05-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +19342 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20033 ___ Python tracker ___

[issue40593] Improve error reporting for invalid character in source code

2020-05-11 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently you get SyntaxError with message "invalid character in identifier" in two cases: 1. The source code contains some non-ASCII non-identifier character. Usually it happens when you copy code from internet page or PDF file which was "improved" by s