Skip to content

gh-107149: Rename PyUnstable_ExecutableKinds to _Py_ExecutableKinds #108651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Include/internal/pycore_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,13 @@ PyGenObject *_PyFrame_GetGenerator(_PyInterpreterFrame *frame)
return (PyGenObject *)(((char *)frame) - offset_in_gen);
}

#define PY_EXECUTABLE_KIND_SKIP 0
#define PY_EXECUTABLE_KIND_PY_FUNCTION 1
#define PY_EXECUTABLE_KIND_BUILTIN_FUNCTION 3
#define PY_EXECUTABLE_KIND_METHOD_DESCRIPTOR 4
#define PY_EXECUTABLE_KINDS 5
#define _PY_EXECUTABLE_KIND_SKIP 0
#define _PY_EXECUTABLE_KIND_PY_FUNCTION 1
#define _PY_EXECUTABLE_KIND_BUILTIN_FUNCTION 3
#define _PY_EXECUTABLE_KIND_METHOD_DESCRIPTOR 4
#define _PY_EXECUTABLE_KINDS 5

PyAPI_DATA(const PyTypeObject *) const PyUnstable_ExecutableKinds[PY_EXECUTABLE_KINDS+1];
PyAPI_DATA(const PyTypeObject *) const _Py_ExecutableKinds[_PY_EXECUTABLE_KINDS+1];

#ifdef __cplusplus
}
Expand Down
12 changes: 6 additions & 6 deletions Python/frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 _Py_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,
};