mirror of
https://github.com/python/cpython.git
synced 2026-01-02 13:33:44 +00:00
The _xxsubinterpreters module was meant to only use public API. Some internal C-API usage snuck in over the last few years (e.g. gh-28969). This fixes that.
(cherry picked from commit e6373c0d8b)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
11 lines
387 B
C
11 lines
387 B
C
#ifndef Py_CPYTHON_INTERPRETERIDOBJECT_H
|
|
# error "this header file must not be included directly"
|
|
#endif
|
|
|
|
/* Interpreter ID Object */
|
|
|
|
PyAPI_DATA(PyTypeObject) _PyInterpreterID_Type;
|
|
|
|
PyAPI_FUNC(PyObject *) _PyInterpreterID_New(int64_t);
|
|
PyAPI_FUNC(PyObject *) _PyInterpreterState_GetIDObject(PyInterpreterState *);
|
|
PyAPI_FUNC(PyInterpreterState *) _PyInterpreterID_LookUp(PyObject *);
|