Skip to content

[3.9] bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235)#20396

Merged
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-9645930-3.9
May 25, 2020
Merged

[3.9] bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235)#20396
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-9645930-3.9

Conversation

@miss-islington

@miss-islington miss-islington commented May 25, 2020

Copy link
Copy Markdown
Contributor

The scripts in Tools/peg_generator/scripts mostly assume that
ast.parse and compile use the old parser, since this was the
state of things, while we were developing them. They need to be
updated to always use the correct parser. _peg_parser is being
extended to support both parsing and compiling with both parsers.
(cherry picked from commit 9645930)

Co-authored-by: Lysandros Nikolaou lisandrosnik@gmail.com

https://bugs.python.org/issue40688

…nGH-20235)

The scripts in `Tools/peg_generator/scripts` mostly assume that
`ast.parse` and `compile` use the old parser, since this was the
state of things, while we were developing them. They need to be
updated to always use the correct parser. `_peg_parser` is being
extended to support both parsing and compiling with both parsers.
(cherry picked from commit 9645930)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@lysnikolaou and @pablogsal: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 3c6c86a into python:3.9 May 25, 2020
@miss-islington miss-islington deleted the backport-9645930-3.9 branch May 25, 2020 20:11
@miss-islington

Copy link
Copy Markdown
Contributor Author

@lysnikolaou and @pablogsal: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor Author

@lysnikolaou and @pablogsal: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants