diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-31 07:56:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 07:56:06 (GMT) |
commit | 9c03215a3ee31462045b2c2ee162bdda30c54572 (patch) | |
tree | 364dcf221c1d01095b1bd2d1e5ecc1357830137b /Python | |
parent | b89b838ebc817e5fbffad1ad8e1a85aa2d9f3113 (diff) | |
download | cpython-9c03215a3ee31462045b2c2ee162bdda30c54572.zip cpython-9c03215a3ee31462045b2c2ee162bdda30c54572.tar.gz cpython-9c03215a3ee31462045b2c2ee162bdda30c54572.tar.bz2 |
gh-107149: Make PyUnstable_ExecutableKinds public (#108440)
Move PyUnstable_ExecutableKinds and associated macros from the
internal C API to the public C API.
Rename constants: replace "PY_" prefix with "PyUnstable_" prefix.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/frame.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Python/frame.c b/Python/frame.c index fbfa543..b483903 100644 --- a/Python/frame.c +++ b/Python/frame.c @@ -167,10 +167,10 @@ PyUnstable_InterpreterFrame_GetLine(_PyInterpreterFrame *frame) return PyCode_Addr2Line(_PyFrame_GetCode(frame), addr); } -const PyTypeObject *const PyUnstable_ExecutableKinds[PY_EXECUTABLE_KINDS+1] = { - [PY_EXECUTABLE_KIND_SKIP] = &_PyNone_Type, - [PY_EXECUTABLE_KIND_PY_FUNCTION] = &PyCode_Type, - [PY_EXECUTABLE_KIND_BUILTIN_FUNCTION] = &PyMethod_Type, - [PY_EXECUTABLE_KIND_METHOD_DESCRIPTOR] = &PyMethodDescr_Type, - [PY_EXECUTABLE_KINDS] = NULL, +const PyTypeObject *const PyUnstable_ExecutableKinds[PyUnstable_EXECUTABLE_KINDS+1] = { + [PyUnstable_EXECUTABLE_KIND_SKIP] = &_PyNone_Type, + [PyUnstable_EXECUTABLE_KIND_PY_FUNCTION] = &PyCode_Type, + [PyUnstable_EXECUTABLE_KIND_BUILTIN_FUNCTION] = &PyMethod_Type, + [PyUnstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR] = &PyMethodDescr_Type, + [PyUnstable_EXECUTABLE_KINDS] = NULL, }; |