-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
bpo-40939: Remove the old parser #20768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c1a2097
to
27a0c11
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, there is also a note in Doc/using/cmdline.rst
that will need to be removed.
Thanks for the catch! |
62192dd
to
3dc1827
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM! Amazing work, I couldn't find a single miss! 🚀
Also, I guess this is what we've been really working for in the last months. Feels good!
a4055e4
to
738a7ae
Compare
I plan to land this tomorrow as this PR keeps getting merge conflicts from everywhere and it will be easier to fix small things in future PRs if needed. |
@@ -1,803 +0,0 @@ | |||
import ast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this file deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is comparing the ast of the old parser to the last of the new parser, so it serves no purpose anymore. We have been adding all negative cases (testing extensions) into other files so we won't lose anything
e11e688
to
1ad8ff2
Compare
I have rebased again to solve more merge conflicts. Could you review again? |
Update cmdline.rst 📜🤖 Added by blurb_it. Clean some tests and bring back some deleted cases
1ad8ff2
to
635a9e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we could backport the file renames? (Not the moves from Parser/pegen/* to Parser/*, but the rename of parse.c to parser.c and parse_string.c to string_parser.c.)
👍 I will try to make a PR later today with that |
Land it!
|
This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.
https://bugs.python.org/issue40939