1414# 文博 周 <zhouwenbonwpu@mail.nwpu.edu.cn>, 2021
1515# Dai Xu <daixu61@hotmail.com>, 2022
1616# cdarlint <cdarling@126.com>, 2022
17- # Bryan不可思议 , 2023
17+ # ProgramRipper , 2023
1818# WH-2099 <wh2099@outlook.com>, 2023
1919# jaystone776 <1732865113@qq.com>, 2023
2020# 云line, 2023
@@ -25,7 +25,7 @@ msgid ""
2525msgstr ""
2626"Project-Id-Version : Python 3.13\n "
2727"Report-Msgid-Bugs-To : \n "
28- "POT-Creation-Date : 2024-05-11 18:37 +0000\n "
28+ "POT-Creation-Date : 2024-08-31 10:59 +0000\n "
2929"PO-Revision-Date : 2021-06-28 00:48+0000\n "
3030"Last-Translator : Freesand Leo <yuqinju@163.com>, 2024\n "
3131"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -85,13 +85,11 @@ msgstr ""
8585
8686#: ../../c-api/exceptions.rst:37
8787msgid ""
88- "The error indicator is **not** the result of :func:`sys.exc_info() `. The "
88+ "The error indicator is **not** the result of :func:`sys.exc_info`. The "
8989"former corresponds to an exception that is not yet caught (and is therefore "
9090"still propagating), while the latter returns an exception after it is caught"
9191" (and has therefore stopped propagating)."
9292msgstr ""
93- "错误指示器 **不是** :func:`sys.exc_info()` "
94- "的执行结果。前者对应尚未捕获的异常(异常还在传播),而后者在捕获异常后返回这个异常(异常已经停止传播)。"
9593
9694#: ../../c-api/exceptions.rst:44
9795msgid "Printing and clearing"
@@ -596,6 +594,17 @@ msgstr "此函数会被需要捕获异常的代码,或需要临时保存和恢
596594msgid "For example::"
597595msgstr "例如:"
598596
597+ #: ../../c-api/exceptions.rst:451
598+ msgid ""
599+ "{\n"
600+ " PyObject *exc = PyErr_GetRaisedException();\n"
601+ "\n"
602+ " /* ... code that might produce other errors ... */\n"
603+ "\n"
604+ " PyErr_SetRaisedException(exc);\n"
605+ "}"
606+ msgstr ""
607+
599608#: ../../c-api/exceptions.rst:459
600609msgid ""
601610":c:func:`PyErr_GetHandledException`, to save the exception currently being "
@@ -634,6 +643,18 @@ msgid ""
634643"exceptions or save and restore the error indicator temporarily."
635644msgstr "此函数通常只被需要捕获异常或临时保存和恢复错误指示符的旧式代码所使用。"
636645
646+ #: ../../c-api/exceptions.rst:495
647+ msgid ""
648+ "{\n"
649+ " PyObject *type, *value, *traceback;\n"
650+ " PyErr_Fetch(&type, &value, &traceback);\n"
651+ "\n"
652+ " /* ... code that might produce other errors ... */\n"
653+ "\n"
654+ " PyErr_Restore(type, value, traceback);\n"
655+ "}"
656+ msgstr ""
657+
637658#: ../../c-api/exceptions.rst:509
638659msgid "Use :c:func:`PyErr_SetRaisedException` instead."
639660msgstr "请改用 :c:func:`PyErr_SetRaisedException`。"
@@ -691,6 +712,13 @@ msgstr ""
691712"此函数 *不会* 隐式地在异常值上设置 :attr:`~BaseException.__traceback__` 属性。 "
692713"如果想要适当地设置回溯,还需要以下附加代码片段::"
693714
715+ #: ../../c-api/exceptions.rst:550
716+ msgid ""
717+ "if (tb != NULL) {\n"
718+ " PyException_SetTraceback(val, tb);\n"
719+ "}"
720+ msgstr ""
721+
694722#: ../../c-api/exceptions.rst:557
695723msgid ""
696724"Retrieve the active exception instance, as would be returned by "
0 commit comments