Skip to content

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
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.

3 participants