bpo-44530: Add co_qualname field to PyCodeObject #26941
Conversation
4548084
to
008cb5a
Thanks for opening a PR @P403n1x87. Let's discuss this on the bpo issue, but at the very least this needs to:
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Just a couple of questions for the reviewers |
I have made the requested changes; please review again |
Thanks for making the requested changes! @pablogsal: please review the changes made to this pull request. |
@@ -55,7 +55,6 @@ PyAPI_DATA(PyTypeObject) PyFunction_Type; | |||
#define PyFunction_Check(op) Py_IS_TYPE(op, &PyFunction_Type) | |||
|
|||
PyAPI_FUNC(PyObject *) PyFunction_New(PyObject *, PyObject *); | |||
PyAPI_FUNC(PyObject *) PyFunction_NewWithQualName(PyObject *, PyObject *, PyObject *); |
The MAKE_FUNCTION opcode now needs to pop one less value from the TOS.
7a12d31
to
3f2c9e9
@@ -7243,7 +7242,6 @@ makecode(struct compiler *c, struct assembler *a, PyObject *constslist, | |||
PyObject *consts = NULL; | |||
PyObject *localsplusnames = NULL; | |||
PyObject *localspluskinds = NULL; | |||
PyObject *name = NULL; |
P403n1x87
Jul 4, 2021
Author
Contributor
This was unused but was not reported by the compiler, probably because of the Py_XDECREF(name)
below
Misc/NEWS.d/next/C API/2021-06-28-23-44-47.bpo-44530.qij7YC.rst
Outdated
Show resolved
Hide resolved
Seems that you need to rebase and run |
yup, done! |
If you want to schedule another build, you need to add the " |
Hummm, seems that the Windows buildbots are failing with this PR:
Link to the builds: https://buildbot.python.org/all/#/builders/577/builds/83 |
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Hmm is this related to the output of |
Ah, the problem is that we are missing bumping the magic number to avoid picking up old pyc files: cpython/Lib/importlib/_bootstrap_external.py Lines 212 to 374 in f64de53 |
I have made the requested changes; please review again |
Thanks for making the requested changes! @pablogsal: please review the changes made to this pull request. |
|
Great job @P403n1x87! Happy to see Austin getting better :) |
https://bugs.python.org/issue44530
Sample flame graph for the script
Python 3.9
With proposed change