mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +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
|
@ -311,14 +311,6 @@ 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
|
||||
|
||||
PyAPI_DATA(const PyTypeObject *) const PyUnstable_ExecutableKinds[PY_EXECUTABLE_KINDS+1];
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue