99# Ziqi Wang <[email protected] >, 20211010# Yi Cao <[email protected] >, 20211111# jsgang <[email protected] >, 202112- # Freesand Leo <[email protected] >, 20211312# Pandaaaa906 <[email protected] >, 20211413# ppcfish <[email protected] >, 20211514# jaystone776 <[email protected] >, 20211615# Jiuh-star <[email protected] >, 20211716# helloworldSB <[email protected] >, 202117+ 18+ # Freesand Leo <[email protected] >, 20211819#
1920#, fuzzy
2021msgid ""
@@ -23,7 +24,7 @@ msgstr ""
2324"Report-Msgid-Bugs-To : \n "
2425"POT-Creation-Date : 2021-06-29 12:56+0000\n "
2526"PO-Revision-Date : 2021-06-28 00:48+0000\n "
26- "Last-Translator : helloworldSB <warningfor163@foxmail .com>, 2021\n "
27+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2021\n "
2728"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2829"MIME-Version : 1.0\n "
2930"Content-Type : text/plain; charset=UTF-8\n "
@@ -603,7 +604,7 @@ msgstr "信号处理"
603604
604605#: ../../c-api/exceptions.rst:508
605606msgid "This function interacts with Python's signal handling."
606- msgstr ""
607+ msgstr "这个函数与Python的信号处理交互。 "
607608
608609#: ../../c-api/exceptions.rst:510
609610msgid ""
@@ -612,6 +613,8 @@ msgid ""
612613"if so, invokes the corresponding signal handler. If the :mod:`signal` "
613614"module is supported, this can invoke a signal handler written in Python."
614615msgstr ""
616+ "如果在主 Python 解释器下从主线程调用该函数,它将检查是否向进程发送了信号,如果是,则发起调用相应的信号处理句柄。 如果支持 "
617+ ":mod:`signal` 模块,则可以发起调用以 Python 编写的信号处理句柄。"
615618
616619#: ../../c-api/exceptions.rst:515
617620msgid ""
@@ -621,24 +624,26 @@ msgid ""
621624"other pending signals may not have been handled yet: they will be on the "
622625"next :c:func:`PyErr_CheckSignals()` invocation)."
623626msgstr ""
627+ "该函数会尝试处理所有待处理信号,然后返回 ``0``。 但是,如果 Python 信号处理句柄引发了异常,则设置错误指示符并且函数将立即返回 "
628+ "``-1`` (这样其他待处理信号可能还没有被处理:它们将在下次发起调用 :c:func:`PyErr_CheckSignals()` 时被处理)。"
624629
625630#: ../../c-api/exceptions.rst:521
626631msgid ""
627632"If the function is called from a non-main thread, or under a non-main Python"
628633" interpreter, it does nothing and returns ``0``."
629- msgstr ""
634+ msgstr "如果函数从非主线程调用,或在非主Python解释器下调用,则它不执行任何操作并返回0。 "
630635
631636#: ../../c-api/exceptions.rst:524
632637msgid ""
633638"This function can be called by long-running C code that wants to be "
634639"interruptible by user requests (such as by pressing Ctrl-C)."
635- msgstr ""
640+ msgstr "这个函数可以由希望被用户请求(例如按Ctrl-C)中断的长时间运行的C代码调用。 "
636641
637642#: ../../c-api/exceptions.rst:528
638643msgid ""
639644"The default Python signal handler for :const:`SIGINT` raises the "
640645":exc:`KeyboardInterrupt` exception."
641- msgstr ""
646+ msgstr "针对 :const:`SIGINT` 的默认 Python 信号处理句柄会引发 :exc:`KeyboardInterrupt` 异常。 "
642647
643648#: ../../c-api/exceptions.rst:539
644649msgid ""
@@ -896,6 +901,8 @@ msgid ""
896901"overflowed using :c:func:`PyOS_CheckStack`. In this is the case, it sets a "
897902":exc:`MemoryError` and returns a nonzero value."
898903msgstr ""
904+ "如果定义了 :const:`USE_STACKCHECK`,此函数会使用 :c:func:`PyOS_CheckStack` "
905+ "来检查操作系统堆栈是否溢出。 在这种情况下,它将设置一个 :exc:`MemoryError` 并返回非零值。"
899906
900907#: ../../c-api/exceptions.rst:774
901908msgid ""
0 commit comments