mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (#12003)
This commit is contained in:
parent
1f24a719e7
commit
bcfa450f21
12 changed files with 483 additions and 393 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "pycore_pystate.h"
|
||||
#include "pycore_context.h"
|
||||
#include "frameobject.h"
|
||||
#include "interpreteridobject.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -1806,6 +1807,7 @@ _PyTypes_Init(void)
|
|||
INIT_TYPE(&PySeqIter_Type, "sequence iterator");
|
||||
INIT_TYPE(&PyCoro_Type, "coroutine");
|
||||
INIT_TYPE(&_PyCoroWrapper_Type, "coroutine wrapper");
|
||||
INIT_TYPE(&_PyInterpreterID_Type, "interpreter ID");
|
||||
return _Py_INIT_OK();
|
||||
|
||||
#undef INIT_TYPE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue