[issue39219] Fix attributes of syntax errors raized in the tokenizer

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

[issue39219] Fix attributes of syntax errors raized in the tokenizer

2020-02-12 Thread miss-islington
miss-islington added the comment: New changeset efd878cdb46d9c7038d93fb36eb1ff7dc5baf9ec by Miss Islington (bot) in branch '3.8': bpo-39219: Fix SyntaxError attributes in the tokenizer. (GH-17828) https://github.com/python/cpython/commit/efd878cdb46d9c7038d93fb36eb1ff7dc5baf9ec -- n

[issue39219] Fix attributes of syntax errors raized in the tokenizer

2020-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0cc6b5e559b8303b18fdd56c2befd900fe7b5e35 by Serhiy Storchaka in branch 'master': bpo-39219: Fix SyntaxError attributes in the tokenizer. (GH-17828) https://github.com/python/cpython/commit/0cc6b5e559b8303b18fdd56c2befd900fe7b5e35 --

[issue39219] Fix attributes of syntax errors raized in the tokenizer

2020-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +17849 pull_request: https://github.com/python/cpython/pull/18479 ___ Python tracker ___ __

[issue39219] Fix attributes of syntax errors raized in the tokenizer

2020-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, wrong issue number. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue39219] Fix attributes of syntax errors raized in the tokenizer

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

[issue39219] Fix attributes of syntax errors raized in the tokenizer

2020-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: On entry of '0xz', IDLE from 3.6 to date highlights the '0x' part of the original entry. I presume it can do this because it ignores the text attribute, and because bytes == chars for at least '0x'. The 'proposed PR' is not listed here. Is it not yet subm

[issue39219] Fix attributes of syntax errors raized in the tokenizer

2020-01-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : SyntaxError can be raised at different stages of compiling. In some places the source text is not available and should be read from the file using the file name. Which does not work in case of compiling a string or reading from stdin. >>> 0z File "", l