-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
bpo-45056: Remove trailing unused constants from co_consts #28109
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
You need to regenerate |
Yes. But it will cause conflict soon. So I want to delay |
@@ -7868,6 +7871,9 @@ assemble(struct compiler *c, int addNone) | |||
if (duplicate_exits_without_lineno(c)) { | |||
return NULL; |
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.
Now, I am curious why this isn’t “go to error”.
What if unused constants appear in the middle? Can that happen? |
Yes, there are some cases. This pull request doesn't remove them because I am focusing the regressin at Python 3.10. |
Sorry, @methane and @ambv, I could not cleanly backport this to |
@methane, I'll deal with the backport. |
…thonGH-28109). (cherry picked from commit 55c4a92) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
GH-28125 is a backport of this pull request to the 3.10 branch. |
https://bugs.python.org/issue45056