Skip to content

Commit 2f7b92e

Browse files
vstinnerencukou
andauthored
Update Doc/c-api/init.rst
Co-authored-by: Petr Viktorin <[email protected]>
1 parent da8cbf0 commit 2f7b92e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/c-api/init.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,11 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
13691369
Boost library's ``boost::context``, you must call
13701370
:c:func:`~PyUnstable_ThreadState_SetStack` to inform CPython of the change.
13711371
1372+
Call :c:func:`~PyUnstable_ThreadState_SetStack` either before
1373+
or after changing the stack.
1374+
Do not call any other Python C API between the call and the stack
1375+
change.
1376+
13721377
See :c:func:`PyUnstable_ThreadState_ResetStack` for undoing this operation.
13731378
13741379
.. versionadded:: next

0 commit comments

Comments
 (0)