44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Jian Aijun <[email protected] >, 202087# walkinrain <[email protected] >, 202098# MuSheng Chen <[email protected] >, 2020109# Freesand Leo <[email protected] >, 2020@@ -128,8 +127,8 @@ msgid ""
128127":meth:`Executor.submit` and :meth:`Executor.map` made after shutdown will "
129128"raise :exc:`RuntimeError`."
130129msgstr ""
131- "当待执行的期程完成执行后向执行者发送信号 ,它就会释放正在使用的任何资源。在关闭后调用 :meth:`Executor.submit` 和 "
132- ":meth:`Executor.submit` 会触发 :exc:`RuntimeError`。"
130+ "当待执行的 future 对象完成执行后向执行者发送信号 ,它就会释放正在使用的任何资源。 在关闭后调用 :meth:`Executor.submit` "
131+ "和 :meth:`Executor.submit` 会触发 :exc:`RuntimeError`。"
133132
134133#: ../../library/concurrent.futures.rst:77
135134msgid ""
@@ -141,9 +140,9 @@ msgid ""
141140"*wait*, the entire Python program will not exit until all pending futures "
142141"are done executing."
143142msgstr ""
144- "如果 *wait* 为 ``True`` 则此方法只有在所有待执行的期程完成执行且释放已分配的资源后才会返回 。 如果 *wait* 为 "
145- "``False``,方法立即返回,所有待执行的期程完成执行后会释放已分配的资源 。 不管 *wait* 的值是什么,整个 Python "
146- "程序将等到所有待执行的期程完成执行后才退出 。"
143+ "如果 *wait* 为 ``True`` 则此方法只有在所有待执行的 future 对象完成执行且释放已分配的资源后才会返回 。 如果 *wait* 为 "
144+ "``False``,方法立即返回,所有待执行的 future 对象完成执行后会释放已分配的资源 。 不管 *wait* 的值是什么,整个 Python "
145+ "程序将等到所有待执行的 future 对象完成执行后才退出 。"
147146
148147#: ../../library/concurrent.futures.rst:85
149148msgid ""
@@ -313,8 +312,8 @@ msgid ""
313312"undefined but operations on the executor or its futures would often freeze "
314313"or deadlock."
315314msgstr ""
316- "如果其中一个工作进程被突然终止,:exc:`BrokenProcessPool` "
317- "就会马上触发。可预计的行为没有定义,但执行器上的操作或它的期程会被冻结或死锁 。"
315+ "如果其中一个工作进程被突然终止,:exc:`BrokenProcessPool` 就会马上触发。 可预计的行为没有定义,但执行器上的操作或它的 "
316+ "future 对象会被冻结或死锁 。"
318317
319318#: ../../library/concurrent.futures.rst:249
320319msgid ""
@@ -388,7 +387,7 @@ msgstr ""
388387msgid ""
389388"If the future is cancelled before completing then :exc:`.CancelledError` "
390389"will be raised."
391- msgstr "如果期程在完成前被取消, :exc:`.CancelledError` 将被触发。"
390+ msgstr "如果 futrue 在完成前被取消则 :exc:`.CancelledError` 将被触发。"
392391
393392#: ../../library/concurrent.futures.rst:341
394393msgid "If the call raised, this method will raise the same exception."
@@ -416,7 +415,9 @@ msgid ""
416415"Attaches the callable *fn* to the future. *fn* will be called, with the "
417416"future as its only argument, when the future is cancelled or finishes "
418417"running."
419- msgstr "附加可调用 *fn* 到期程。当期程被取消或完成运行时,将会调用 *fn*,而这个期程将作为它唯一的参数。"
418+ msgstr ""
419+ "附加可调用 *fn* 到 future 对象。当 future 对象被取消或完成运行时,将会调用 *fn*,而这个 future "
420+ "对象将作为它唯一的参数。"
420421
421422#: ../../library/concurrent.futures.rst:363
422423msgid ""
@@ -433,7 +434,7 @@ msgstr ""
433434msgid ""
434435"If the future has already completed or been cancelled, *fn* will be called "
435436"immediately."
436- msgstr "如果期程已经完成或已取消 ,*fn* 会被立即调用。"
437+ msgstr "如果 future 对象已经完成或已取消 ,*fn* 会被立即调用。"
437438
438439#: ../../library/concurrent.futures.rst:372
439440msgid ""
@@ -516,8 +517,8 @@ msgid ""
516517"(pending or running futures)."
517518msgstr ""
518519"等待 *fs* 指定的 :class:`Future` 实例(可能由不同的 :class:`Executor` 实例创建)完成。 "
519- "返回一个由集合构成的具名 2 元组。 第一个集合名称为 ``done``,包含在等待完成之前已完成的期程(包括正常结束或被取消的期程)。 "
520- "第二个集合名称为 ``not_done``,包含未完成的期程(包括挂起的或正在运行的期程 )。"
520+ "返回一个由集合构成的具名 2 元组。 第一个集合名称为 ``done``,包含在等待完成之前已完成的期程(包括正常结束或被取消的 future "
521+ "对象)。 第二个集合名称为 ``not_done``,包含未完成的 future 对象(包括挂起的或正在运行的 future 对象 )。"
521522
522523#: ../../library/concurrent.futures.rst:432
523524msgid ""
@@ -583,15 +584,15 @@ msgid ""
583584" no limit to the wait time."
584585msgstr ""
585586"返回一个包含 *fs* 所指定的 :class:`Future` 实例(可能由不同的 :class:`Executor` "
586- "实例创建)的迭代器,这些实例会在完成时生成期程(包括正常结束或被取消的期程 )。 任何由 *fs* 所指定的重复期程将只被返回一次。 任何在 "
587- ":func:`as_completed` 被调用之前完成的期程将优先被生成 。 如果 :meth:`~iterator.__next__` 被调用并且在对 "
588- " :func:`as_completed` 的原始调用 *timeout* 秒之后结果仍不可用,则返回的迭代器将引发 "
589- ":exc:`concurrent.futures.TimeoutError`。 *timeout* 可以为整数或浮点数。 如果 *timeout* "
590- "未指定或为 ``None``,则不限制等待时间。"
587+ "实例创建)的迭代器,这些实例会在完成时生成 future 对象(包括正常结束或被取消的 future 对象 )。 任何由 *fs* 所指定的重复 "
588+ "future 对象将只被返回一次。 任何在 :func:`as_completed` 被调用之前完成的 future 对象将优先被生成 。 如果 "
589+ ":meth:`~iterator.__next__` 被调用并且在对 :func:`as_completed` 的原始调用 *timeout* "
590+ "秒之后结果仍不可用,则返回的迭代器将引发 :exc:`concurrent.futures.TimeoutError`。 *timeout* "
591+ "可以为整数或浮点数。 如果 *timeout* 未指定或为 ``None``,则不限制等待时间。"
591592
592593#: ../../library/concurrent.futures.rst:473
593594msgid ":pep:`3148` -- futures - execute computations asynchronously"
594- msgstr ":pep:`3148` -- 期程 - 异步执行指令。"
595+ msgstr ":pep:`3148` -- future 对象 - 异步执行指令。"
595596
596597#: ../../library/concurrent.futures.rst:473
597598msgid ""
@@ -605,11 +606,11 @@ msgstr "Exception类"
605606
606607#: ../../library/concurrent.futures.rst:484
607608msgid "Raised when a future is cancelled."
608- msgstr "期程被取消时会触发 。"
609+ msgstr "future 对象被取消时会触发 。"
609610
610611#: ../../library/concurrent.futures.rst:488
611612msgid "Raised when a future operation exceeds the given timeout."
612- msgstr "期程运算超出给定的超时数值时引发 。"
613+ msgstr "future 对象执行超出给定的超时数值时引发 。"
613614
614615#: ../../library/concurrent.futures.rst:492
615616msgid ""
0 commit comments