This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Line continuation of blank line emits NEWLINE
Type: behavior Stage: patch review
Components: Interpreter Core Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: miedzinski
Priority: normal Keywords: patch

Created on 2019-07-18 14:13 by miedzinski, last changed 2022-04-11 14:59 by admin.

Files
File name Uploaded Description Edit
linecont.py miedzinski, 2019-07-18 14:13
Pull Requests
URL Status Linked Edit
PR 14840 open miedzinski, 2019-07-18 14:27
Messages (1)
msg348117 - (view) Author: Dominik Miedziński (miedzinski) * Date: 2019-07-18 14:13
Both C and Python tokenizers emit NEWLINE tokens on continued blank lines. Because of this it is possible to emit repeated NEWLINEs, which some tools don't expect to happen.

I've attached example source file which is tokenized into 3 NEWLINE tokens in a row.
History
Date User Action Args
2022-04-11 14:59:18adminsetgithub: 81802
2019-07-18 14:27:38miedzinskisetkeywords: + patch
stage: patch review
pull_requests: + pull_request14630
2019-07-18 14:13:50miedzinskicreate