bpo-40939: Remove PEG parser easter egg (__new_parser__) (#20802) · python/cpython@bcd7dee · GitHub
Skip to content

Commit bcd7dee

Browse files
authored
bpo-40939: Remove PEG parser easter egg (__new_parser__) (#20802)
It no longer serves a purpose (there's only one parser) and having "new" in any name will eventually look odd. Also, it impinges on a potential sub-namespace, `__new_...__`.
1 parent 10e6506 commit bcd7dee

4 files changed

Lines changed: 10 additions & 47 deletions

File tree

Grammar/python.gram

Lines changed: 0 additions & 1 deletion

Lib/keyword.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
'False',
2020
'None',
2121
'True',
22-
'__new_parser__',
2322
'and',
2423
'as',
2524
'assert',

Lib/pydoc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,6 @@ class Helper:
18171817
'False': '',
18181818
'None': '',
18191819
'True': '',
1820-
'__new_parser__': '',
18211820
'and': 'BOOLEAN',
18221821
'as': 'with',
18231822
'assert': ('assert', ''),

Parser/pegen/parse.c

Lines changed: 10 additions & 44 deletions

0 commit comments

Comments
 (0)