Skip to content

bpo-45122: Remove PyCode_New from mypyc #11067

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

Merged
merged 2 commits into from
Sep 16, 2021
Merged

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Sep 7, 2021

Description

Guido plans to remove PyCode_New from CPython CAPI.
See: https://bugs.python.org/issue45122

closes: #11066

@@ -189,38 +189,6 @@ void CPy_TypeError(const char *expected, PyObject *value) {
}
}

// These functions are basically exactly PyCode_NewEmpty and
// _PyTraceback_Add which are available in all the versions we support.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment still applies to the next function I believe. Not sure what optimization this is talking about.

@gvanrossum
Copy link
Member

Note that this fixes mypy issue #11066.

Copy link
Collaborator

@97littleleaf11 97littleleaf11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this waiting for someone or something?

@JelleZijlstra JelleZijlstra merged commit e2d8a50 into python:master Sep 16, 2021
@gvanrossum
Copy link
Member

Thanks! Now I can sleep at night. :-)

@JelleZijlstra
Copy link
Member

Always happy to be of service.

@corona10 corona10 deleted the bpo-45122 branch September 22, 2021 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mypyc uses PyCode_New, which will *disappear* in 3.11
4 participants