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 2019-07-18 14:27 by miedzinski.

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
2019-07-18 14:27:38miedzinskisetkeywords: + patch
stage: patch review
pull_requests: + pull_request14630
2019-07-18 14:13:50miedzinskicreate