[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0d0a9eaa822658679cc2b65f125ab74bfd4aedfe by Pablo Galindo in branch '3.9': [3.9] bpo-44409: Fix error location in tokenizer errors that happen during initialization (GH-26712). (GH-26723) https://github.com/python/cpython/commit/0d0a9eaa

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-14 Thread miss-islington
miss-islington added the comment: New changeset 133cddf76e8265536c584872351c191e3afd66a2 by Miss Islington (bot) in branch '3.10': bpo-44409: Fix error location in tokenizer errors that happen during initialization (GH-26712) https://github.com/python/cpython/commit/133cddf76e8265536c5848723

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25313 pull_request: https://github.com/python/cpython/pull/26723 ___ Python tracker ___ ___

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 507ed6fa1d6661e0f8e6d3282764aa9625a99594 by Pablo Galindo in branch 'main': bpo-44409: Fix error location in tokenizer errors that happen during initialization (GH-26712) https://github.com/python/cpython/commit/507ed6fa1d6661e0f8e6d3282

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-14 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25312 pull_request: https://github.com/python/cpython/pull/26722 ___ Python tracker

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-14 Thread Florian Weimer
Florian Weimer added the comment: I suppose changing the documentation to mention `None` would be possible as well, but restoring the old behavior works for me too. Thanks. -- ___ Python tracker ___

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +3.10regression, 3.9regression -patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25300 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26712 ___ Python tracker __

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Well, in both cases this means that the line number is not available. I think None is a bit cleaner in this regard. -- ___ Python tracker ___

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-13 Thread Florian Weimer
New submission from Florian Weimer : This example results in an undocumented value None for the lineno attribute: ``` source = b"\xef\xbb\xbf#coding: utf8\nprint('\xe6\x88\x91')\n" try: compile(source, filename="example.py", mode="exec") except SyntaxError as e: print(str(e)) print