File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1- {"translation" : " 99.99 %" , "updated_at" : " 2025-11-26T02:46:54Z " }
1+ {"translation" : " 100.00 %" , "updated_at" : " 2025-11-26T03:36:26Z " }
Original file line number Diff line number Diff line change @@ -2320,6 +2320,11 @@ msgid ""
23202320"call :c:func:`~PyUnstable_ThreadState_SetStackProtection` to inform CPython "
23212321"of the change."
23222322msgstr ""
2323+ "CPython 通过在注意到机器的执行栈即将溢出时引发 :py:exc:`RecursionError` 实现针对 C 代码的 :ref:`递归控制 "
2324+ "<recursion>`。 请查看 :c:func:`Py_EnterRecursiveCall` 函数的示例。 "
2325+ "为此,需要知道当前线程栈的位置,这通常是从操作系统获取的。 例如当使用 Boost 库的 ``boost::context`` "
2326+ "之类的上下文切换技术使栈发生改变时,你必须调用 :c:func:`~PyUnstable_ThreadState_SetStackProtection`"
2327+ " 将变化通知给 CPython。"
23232328
23242329#: ../../c-api/init.rst:1551
23252330msgid ""
You can’t perform that action at this time.
0 commit comments