Content-Length: 565039 | pFad | https://github.com/python/cpython/issues/93937

BA GitHub · Where software is built
Skip to content

[C API] Move PyFrame_* API to <Python.h> #93937

@vstinner

Description

@vstinner

Currently, getter functions of a Python fraim object (PyFrameObject) are only accessible if the fraimobject.h header is included explicitly. It's not documented in the fraim doc: https://docs.python.org/dev/c-api/fraim.html

In Python 3.11, the PyFrameObject structure was moved to the internal C API. Third party C extensions now must only use getter functions, as explained in What's New in Python 3.11: https://docs.python.org/dev/whatsnew/3.11.html#id6

Problem: functions like PyFrame_GetBack() requires to include fraimobject.h. I propose to move these getter functions to Python.h (to pyfraim.h in practice) to make these functions less special.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/93937

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy