Skip to content

[3.11] gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938) #94000

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 20, 2022
Merged

[3.11] gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938) #94000

merged 1 commit into from
Jun 20, 2022

Conversation

vstinner
Copy link
Member

Move the follow functions and type from frameobject.h to pyframe.h,
so the standard <Python.h> provide frame getter functions:

  • PyFrame_Check()
  • PyFrame_GetBack()
  • PyFrame_GetBuiltins()
  • PyFrame_GetGenerator()
  • PyFrame_GetGlobals()
  • PyFrame_GetLasti()
  • PyFrame_GetLocals()
  • PyFrame_Type

Remove #include "frameobject.h" from many C files. It's no longer
needed.

(cherry picked from commit 27b9894)

Move the follow functions and type from frameobject.h to pyframe.h,
so the standard <Python.h> provide frame getter functions:

* PyFrame_Check()
* PyFrame_GetBack()
* PyFrame_GetBuiltins()
* PyFrame_GetGenerator()
* PyFrame_GetGlobals()
* PyFrame_GetLasti()
* PyFrame_GetLocals()
* PyFrame_Type

Remove #include "frameobject.h" from many C files. It's no longer
needed.

(cherry picked from commit 27b9894)
@vstinner vstinner merged commit 96254a9 into python:3.11 Jun 20, 2022
@vstinner vstinner deleted the cpython_pyframe311 branch June 20, 2022 13:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants