Skip to content

[C API] Promote PEP 523 functions to public functions: add PyUnstable_InterpreterState_SetEvalFrameFunc() #141518

@vstinner

Description

@vstinner

C extensions should not use private functions (functions prefixed by _Py), but PEP 523 only added private functions:

  • _PyInterpreterState_GetEvalFrameFunc()
  • _PyInterpreterState_SetEvalFrameFunc()
  • _PyEval_EvalFrameDefault()

I propose promoting these functions as public functions (just remove the _ prefix):

  • PyUnstable_InterpreterState_GetEvalFrameFunc()
  • PyUnstable_InterpreterState_SetEvalFrameFunc()
  • PyUnstable_Eval_EvalFrameDefault()

cc @emmatyping

Update: I added PyUnstable_ prefix to function names.

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