Skip to content

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

Merged
vstinner merged 1 commit into
python:3.11from
vstinner:cpython_pyframe311
Jun 20, 2022
Merged

vstinner merged 1 commit into
python:3.11from
vstinner:cpython_pyframe311

Conversation

@vstinner

Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants