mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
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.
This commit is contained in:
parent
b89b838ebc
commit
9c03215a3e
3 changed files with 14 additions and 14 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue