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: NEWLINE* is missing in 'file' rule in PEG grammar
Type: Stage: resolved
Components: Parser Versions: Python 3.10
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: RobEin, lys.nikolaou, pablogsal
Priority: normal Keywords:

Created on 2022-01-02 20:59 by RobEin, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg409524 - (view) Author: Robert Einhorn (RobEin) Date: 2022-01-02 20:59
https://docs.python.org/3.10/reference/grammar.html

# original grammar rule:
file: [statements] ENDMARKER 


# suggested grammar rule:
file: NEWLINE* [statements] ENDMARKER
msg409528 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2022-01-02 21:30
I don't know what you mean with "it's missing". That is the actual rule used in the grammar:

https://github.com/python/cpython/blob/8e75c6b49b7cb8515b917f01b32ece8c8ea2c0a0/Grammar/python.gram#L88
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90388
2022-01-02 21:30:36pablogsalsetstatus: open -> closed
resolution: not a bug
messages: + msg409528

stage: resolved
2022-01-02 20:59:25RobEincreate