Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebe987d

Browse files
[po] auto sync
1 parent b877541 commit ebe987d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

c-api/exceptions.po

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ msgid ""
601601
"freshly raised. Returns new references for the three objects, any of which "
602602
"may be ``NULL``. Does not modify the exception info state."
603603
msgstr ""
604+
"提取异常信息,即从 ``sys.exc_info()`` 所得到的。 这是指一个 *已被捕获* 的异常,而不是刚被引发的异常。 "
605+
"返回分别指向三个对象的新引用,其中任何一个均可以为 ``NULL``。 不会修改异常信息的状态。"
604606

605607
#: ../../c-api/exceptions.rst:472
606608
msgid ""
@@ -620,6 +622,9 @@ msgid ""
620622
"exception state, pass ``NULL`` for all three arguments. For general rules "
621623
"about the three arguments, see :c:func:`PyErr_Restore`."
622624
msgstr ""
625+
"设置异常信息,即从 ``sys.exc_info()`` 所得到的。 这是指一个 *已被捕获* 的异常,而不是刚被引发的异常。 "
626+
"此函数会偷取对参数的引用。 要清空异常状态,请为所有三个参数传入 ``NULL``。 对于有关三个参数的一般规则,请参阅 "
627+
":c:func:`PyErr_Restore`。"
623628

624629
#: ../../c-api/exceptions.rst:490
625630
msgid ""
@@ -696,6 +701,8 @@ msgid ""
696701
":c:func:`PyErr_CheckSignals` is called, the Python signal handler for the "
697702
"given signal number will be called."
698703
msgstr ""
704+
"模拟一个信号到达的效果。 当下次 :c:func:`PyErr_CheckSignals` 被调用时,将会调用针对指定的信号编号的 Python "
705+
"信号处理句柄。"
699706

700707
#: ../../c-api/exceptions.rst:558
701708
msgid ""
@@ -704,6 +711,8 @@ msgid ""
704711
"interruption is requested (for example when the user presses Ctrl-C to "
705712
"interrupt an operation)."
706713
msgstr ""
714+
"此函数可由自行设置信号处理,并希望 Python 信号处理句柄会在请求中断时(例如当用户按下 Ctrl-C 来中断操作时)按照预期被发起调用的 C "
715+
"代码来调用。"
707716

708717
#: ../../c-api/exceptions.rst:563
709718
msgid ""
@@ -719,13 +728,16 @@ msgid ""
719728
"returned. Otherwise, ``0`` is returned. The error indicator is never "
720729
"changed by this function."
721730
msgstr ""
731+
"如果 *signum* 在被允许的信号编号范围之外,将返回 ``-1``。 在其他情况下,则返回 ``0``。 错误指示符绝不会被此函数所修改。"
722732

723733
#: ../../c-api/exceptions.rst:579
724734
msgid ""
725735
"This utility function specifies a file descriptor to which the signal number"
726736
" is written as a single byte whenever a signal is received. *fd* must be "
727737
"non-blocking. It returns the previous such file descriptor."
728738
msgstr ""
739+
"这个工具函数指定了一个每当收到信号时将被作为以单个字节的形式写入信号编号的目标的文件描述符。 *fd* 必须是非阻塞的。 "
740+
"它将返回前一个这样的文件描述符。"
729741

730742
#: ../../c-api/exceptions.rst:583
731743
msgid ""

0 commit comments

Comments
 (0)