Skip to content

Commit 4e59e88

Browse files
neoneneAA-Turner
andauthored
Update Doc/extending/embedding.rst
Co-authored-by: Adam Turner <[email protected]>
1 parent c84638c commit 4e59e88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/extending/embedding.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,14 @@ Python extension. For example::
252252
};
253253

254254
static PyModuleDef_Slot emb_module_slots[] = {
255+
#ifdef Py_mod_multiple_interpreters
256+
// signal that this module can be imported in isolated subinterpreters
255257
{Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
258+
#endif
259+
#ifdef Py_mod_gil
260+
// signal that this module supports running without an active GIL
256261
{Py_mod_gil, Py_MOD_GIL_NOT_USED},
262+
#endif
257263
{0, NULL}
258264
};
259265

0 commit comments

Comments
 (0)