bpo-45056: Remove trailing unused constants from co_consts#28109
bpo-45056: Remove trailing unused constants from co_consts#28109ambv merged 6 commits intopython:mainfrom
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.
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