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

Skip to content

Commit 21d6ccb

Browse files
committed
[po] auto sync bot
1 parent 34216d6 commit 21d6ccb

2 files changed

Lines changed: 4161 additions & 4148 deletions

File tree

library/concurrent.futures.po

Lines changed: 55 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.7\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2019-05-30 11:32+0900\n"
16+
"POT-Creation-Date: 2019-06-15 11:43+0900\n"
1717
"PO-Revision-Date: 2017-02-16 23:03+0000\n"
1818
"Last-Translator: Freesand Leo <[email protected]>, 2019\n"
1919
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -329,27 +329,28 @@ msgstr ""
329329

330330
#: ../../library/concurrent.futures.rst:296
331331
msgid ""
332-
"Attempt to cancel the call. If the call is currently being executed and "
333-
"cannot be cancelled then the method will return ``False``, otherwise the "
334-
"call will be cancelled and the method will return ``True``."
335-
msgstr "尝试取消调用。如果调用正在执行而且不能被取消那么方法返回 ``False``,否则调用会被取消同时方法返回 ``True``。"
332+
"Attempt to cancel the call. If the call is currently being executed or "
333+
"finished running and cannot be cancelled then the method will return "
334+
"``False``, otherwise the call will be cancelled and the method will return "
335+
"``True``."
336+
msgstr ""
336337

337-
#: ../../library/concurrent.futures.rst:302
338+
#: ../../library/concurrent.futures.rst:303
338339
msgid "Return ``True`` if the call was successfully cancelled."
339340
msgstr "如果调用成功取消返回 ``True``。"
340341

341-
#: ../../library/concurrent.futures.rst:306
342+
#: ../../library/concurrent.futures.rst:307
342343
msgid ""
343344
"Return ``True`` if the call is currently being executed and cannot be "
344345
"cancelled."
345346
msgstr "如果调用正在执行而且不能被取消那么返回``True``。"
346347

347-
#: ../../library/concurrent.futures.rst:311
348+
#: ../../library/concurrent.futures.rst:312
348349
msgid ""
349350
"Return ``True`` if the call was successfully cancelled or finished running."
350351
msgstr "如果调用已被取消或正常结束那么返回 ``True``。"
351352

352-
#: ../../library/concurrent.futures.rst:316
353+
#: ../../library/concurrent.futures.rst:317
353354
msgid ""
354355
"Return the value returned by the call. If the call hasn't yet completed then"
355356
" this method will wait up to *timeout* seconds. If the call hasn't "
@@ -362,18 +363,18 @@ msgstr ""
362363
"秒内没有执行完成,:exc:`concurrent.futures.TimeoutError` 将会被触发。*timeout* 可以是整数或浮点数。如果"
363364
" *timeout* 没有指定或为 ``None``,那么等待时间就没有限制。"
364365

365-
#: ../../library/concurrent.futures.rst:323
366-
#: ../../library/concurrent.futures.rst:337
366+
#: ../../library/concurrent.futures.rst:324
367+
#: ../../library/concurrent.futures.rst:338
367368
msgid ""
368369
"If the future is cancelled before completing then :exc:`.CancelledError` "
369370
"will be raised."
370371
msgstr "如果 futrue 在完成前被取消则 :exc:`.CancelledError` 将被触发。"
371372

372-
#: ../../library/concurrent.futures.rst:326
373+
#: ../../library/concurrent.futures.rst:327
373374
msgid "If the call raised, this method will raise the same exception."
374375
msgstr "如果调用引发了一个异常,这个方法也会引发同样的异常。"
375376

376-
#: ../../library/concurrent.futures.rst:330
377+
#: ../../library/concurrent.futures.rst:331
377378
msgid ""
378379
"Return the exception raised by the call. If the call hasn't yet completed "
379380
"then this method will wait up to *timeout* seconds. If the call hasn't "
@@ -386,18 +387,18 @@ msgstr ""
386387
"秒内没有执行完成,:exc:`concurrent.futures.TimeoutError` 将会被触发。*timeout* 可以是整数或浮点数。如果"
387388
" *timeout* 没有指定或为 ``None``,那么等待时间就没有限制。"
388389

389-
#: ../../library/concurrent.futures.rst:340
390+
#: ../../library/concurrent.futures.rst:341
390391
msgid "If the call completed without raising, ``None`` is returned."
391392
msgstr "如果调用正常完成那么返回 ``None``。"
392393

393-
#: ../../library/concurrent.futures.rst:344
394+
#: ../../library/concurrent.futures.rst:345
394395
msgid ""
395396
"Attaches the callable *fn* to the future. *fn* will be called, with the "
396397
"future as its only argument, when the future is cancelled or finishes "
397398
"running."
398399
msgstr "附加可调用 *fn* 到期程。当期程被取消或完成运行时,将会调用 *fn*,而这个期程将作为它唯一的参数。"
399400

400-
#: ../../library/concurrent.futures.rst:348
401+
#: ../../library/concurrent.futures.rst:349
401402
msgid ""
402403
"Added callables are called in the order that they were added and are always "
403404
"called in a thread belonging to the process that added them. If the "
@@ -408,26 +409,26 @@ msgstr ""
408409
"加入的可调用对象总被属于添加它们的进程中的线程按加入的顺序调用。如果可调用对象引发一个 :exc:`Exception` "
409410
"子类,它会被记录下来并被忽略掉。如果可调用对象引发一个 :exc:`BaseException` 子类,这个行为没有定义。"
410411

411-
#: ../../library/concurrent.futures.rst:354
412+
#: ../../library/concurrent.futures.rst:355
412413
msgid ""
413414
"If the future has already completed or been cancelled, *fn* will be called "
414415
"immediately."
415416
msgstr "如果期程已经完成或已取消,*fn* 会被立即调用。"
416417

417-
#: ../../library/concurrent.futures.rst:357
418+
#: ../../library/concurrent.futures.rst:358
418419
msgid ""
419420
"The following :class:`Future` methods are meant for use in unit tests and "
420421
":class:`Executor` implementations."
421422
msgstr "下面这些 :class:`Future` 方法用于单元测试和 :class:`Executor` 实现。"
422423

423-
#: ../../library/concurrent.futures.rst:362
424+
#: ../../library/concurrent.futures.rst:363
424425
msgid ""
425426
"This method should only be called by :class:`Executor` implementations "
426427
"before executing the work associated with the :class:`Future` and by unit "
427428
"tests."
428429
msgstr "这个方法只可以在执行关联 :class:`Future` 工作之前由 :class:`Executor` 实现调用或由单测试调用。"
429430

430-
#: ../../library/concurrent.futures.rst:366
431+
#: ../../library/concurrent.futures.rst:367
431432
msgid ""
432433
"If the method returns ``False`` then the :class:`Future` was cancelled, i.e."
433434
" :meth:`Future.cancel` was called and returned `True`. Any threads waiting "
@@ -438,7 +439,7 @@ msgstr ""
438439
"``True`` 。等待 :class:`Future` 完成 (即通过 :func:`as_completed` 或 :func:`wait`) "
439440
"的线程将被唤醒。"
440441

441-
#: ../../library/concurrent.futures.rst:371
442+
#: ../../library/concurrent.futures.rst:372
442443
msgid ""
443444
"If the method returns ``True`` then the :class:`Future` was not cancelled "
444445
"and has been put in the running state, i.e. calls to :meth:`Future.running` "
@@ -447,49 +448,47 @@ msgstr ""
447448
"如果这个方法返回 ``True`` 那么 :class:`Future` 不会被取消并已将它变为正在运行状态,也就是说调用 "
448449
":meth:`Future.running` 时将返回 `True`。"
449450

450-
#: ../../library/concurrent.futures.rst:375
451+
#: ../../library/concurrent.futures.rst:376
451452
msgid ""
452453
"This method can only be called once and cannot be called after "
453454
":meth:`Future.set_result` or :meth:`Future.set_exception` have been called."
454455
msgstr ""
455456
"这个方法只可以被调用一次并且不能在调用 :meth:`Future.set_result` 或 :meth:`Future.set_exception`"
456457
" 之后再调用。"
457458

458-
#: ../../library/concurrent.futures.rst:381
459+
#: ../../library/concurrent.futures.rst:382
459460
msgid ""
460461
"Sets the result of the work associated with the :class:`Future` to *result*."
461462
msgstr "设置将 :class:`Future` 关联工作的结果给 *result* 。"
462463

463-
#: ../../library/concurrent.futures.rst:384
464-
#: ../../library/concurrent.futures.rst:392
464+
#: ../../library/concurrent.futures.rst:385
465+
#: ../../library/concurrent.futures.rst:393
465466
msgid ""
466467
"This method should only be used by :class:`Executor` implementations and "
467468
"unit tests."
468469
msgstr "这个方法只可以由 :class:`Executor` 实现和单元测试使用。"
469470

470-
#: ../../library/concurrent.futures.rst:389
471+
#: ../../library/concurrent.futures.rst:390
471472
msgid ""
472473
"Sets the result of the work associated with the :class:`Future` to the "
473474
":class:`Exception` *exception*."
474475
msgstr "设置 :class:`Future` 关联工作的结果给 :class:`Exception` *exception* 。"
475476

476-
#: ../../library/concurrent.futures.rst:397
477+
#: ../../library/concurrent.futures.rst:398
477478
msgid "Module Functions"
478479
msgstr "模块函数"
479480

480-
#: ../../library/concurrent.futures.rst:401
481+
#: ../../library/concurrent.futures.rst:402
481482
msgid ""
482483
"Wait for the :class:`Future` instances (possibly created by different "
483484
":class:`Executor` instances) given by *fs* to complete. Returns a named "
484485
"2-tuple of sets. The first set, named ``done``, contains the futures that "
485-
"completed (finished or were cancelled) before the wait completed. The "
486-
"second set, named ``not_done``, contains uncompleted futures."
486+
"completed (finished or cancelled futures) before the wait completed. The "
487+
"second set, named ``not_done``, contains the futures that did not complete "
488+
"(pending or running futures)."
487489
msgstr ""
488-
"等待 *fs* 指定的 :class:`Future` 实例(可能由不同的 :class:`Executor` "
489-
"实例创建)完成。返回一个已被命名的2元元组集合。第一个集合被命名为 ``done`` "
490-
",包含等待完成前已完成的期程(正常结束或被取消)。第二个集合被命名为 ``not_done``,包含未完成的期程。"
491490

492-
#: ../../library/concurrent.futures.rst:407
491+
#: ../../library/concurrent.futures.rst:409
493492
msgid ""
494493
"*timeout* can be used to control the maximum number of seconds to wait "
495494
"before returning. *timeout* can be an int or float. If *timeout* is not "
@@ -498,97 +497,91 @@ msgstr ""
498497
"*timeout* 可以用来控制返回前最大的等待秒数。 *timeout* 可以为 int 或 float 类型。 如果 *timeout* 未指定或为"
499498
" ``None`` ,则不限制等待时间。"
500499

501-
#: ../../library/concurrent.futures.rst:411
500+
#: ../../library/concurrent.futures.rst:413
502501
msgid ""
503502
"*return_when* indicates when this function should return. It must be one of"
504503
" the following constants:"
505504
msgstr "*return_when* 指定此函数应在何时返回。它必须为以下常数之一:"
506505

507-
#: ../../library/concurrent.futures.rst:417
506+
#: ../../library/concurrent.futures.rst:419
508507
msgid "Constant"
509508
msgstr "常数"
510509

511-
#: ../../library/concurrent.futures.rst:417
510+
#: ../../library/concurrent.futures.rst:419
512511
msgid "Description"
513512
msgstr "描述"
514513

515-
#: ../../library/concurrent.futures.rst:419
514+
#: ../../library/concurrent.futures.rst:421
516515
msgid ":const:`FIRST_COMPLETED`"
517516
msgstr ":const:`FIRST_COMPLETED`"
518517

519-
#: ../../library/concurrent.futures.rst:419
518+
#: ../../library/concurrent.futures.rst:421
520519
msgid "The function will return when any future finishes or is cancelled."
521520
msgstr "函数将在任意可等待对象结束或取消时返回。"
522521

523-
#: ../../library/concurrent.futures.rst:422
522+
#: ../../library/concurrent.futures.rst:424
524523
msgid ":const:`FIRST_EXCEPTION`"
525524
msgstr ":const:`FIRST_EXCEPTION`"
526525

527-
#: ../../library/concurrent.futures.rst:422
526+
#: ../../library/concurrent.futures.rst:424
528527
msgid ""
529528
"The function will return when any future finishes by raising an exception. "
530529
"If no future raises an exception then it is equivalent to "
531530
":const:`ALL_COMPLETED`."
532531
msgstr "函数将在任意可等待对象因引发异常而结束时返回。当没有引发任何异常时它就相当于 :const:`ALL_COMPLETED`。"
533532

534-
#: ../../library/concurrent.futures.rst:428
533+
#: ../../library/concurrent.futures.rst:430
535534
msgid ":const:`ALL_COMPLETED`"
536535
msgstr ":const:`ALL_COMPLETED`"
537536

538-
#: ../../library/concurrent.futures.rst:428
537+
#: ../../library/concurrent.futures.rst:430
539538
msgid "The function will return when all futures finish or are cancelled."
540539
msgstr "函数将在所有可等待对象结束或取消时返回。"
541540

542-
#: ../../library/concurrent.futures.rst:434
541+
#: ../../library/concurrent.futures.rst:436
543542
msgid ""
544543
"Returns an iterator over the :class:`Future` instances (possibly created by "
545544
"different :class:`Executor` instances) given by *fs* that yields futures as "
546-
"they complete (finished or were cancelled). Any futures given by *fs* that "
547-
"are duplicated will be returned once. Any futures that completed before "
548-
":func:`as_completed` is called will be yielded first. The returned iterator"
549-
" raises a :exc:`concurrent.futures.TimeoutError` if "
545+
"they complete (finished or cancelled futures). Any futures given by *fs* "
546+
"that are duplicated will be returned once. Any futures that completed before"
547+
" :func:`as_completed` is called will be yielded first. The returned "
548+
"iterator raises a :exc:`concurrent.futures.TimeoutError` if "
550549
":meth:`~iterator.__next__` is called and the result isn't available after "
551550
"*timeout* seconds from the original call to :func:`as_completed`. *timeout*"
552551
" can be an int or float. If *timeout* is not specified or ``None``, there is"
553552
" no limit to the wait time."
554553
msgstr ""
555-
"通过 *fs* 指定的 the :class:`Future` 实例(可能由不同的 :class:`Executor` "
556-
"实例创建)返回一个迭代器,当它们完成时(正常结束或被取消)产生期程。任何被 *fs* 指定的重复期程都将会返回一次。首先产生调用 "
557-
":func:`as_completed` 前已完成的期程。 当 :meth:`~iterator.__next__` 调用以及从原始调用到 "
558-
":func:`as_completed` 的时间超过 *timeout* 秒后结果还不可用时返回的迭代器就会引发 "
559-
":exc:`concurrent.futures.TimeoutError` 。 *timeout* 可以为 int 或 float 类型。 如果 "
560-
"*timeout* 未指定或为 ``None`` ,则不限制等待时间。"
561554

562-
#: ../../library/concurrent.futures.rst:448
555+
#: ../../library/concurrent.futures.rst:450
563556
msgid ":pep:`3148` -- futures - execute computations asynchronously"
564557
msgstr ":pep:`3148` -- futures - 异步执行指令。"
565558

566-
#: ../../library/concurrent.futures.rst:448
559+
#: ../../library/concurrent.futures.rst:450
567560
msgid ""
568561
"The proposal which described this feature for inclusion in the Python "
569562
"standard library."
570563
msgstr "该提案描述了Python标准库中包含的这个特性。"
571564

572-
#: ../../library/concurrent.futures.rst:453
565+
#: ../../library/concurrent.futures.rst:455
573566
msgid "Exception classes"
574567
msgstr "Exception类"
575568

576-
#: ../../library/concurrent.futures.rst:459
569+
#: ../../library/concurrent.futures.rst:461
577570
msgid "Raised when a future is cancelled."
578571
msgstr "future被取消时会触发。"
579572

580-
#: ../../library/concurrent.futures.rst:463
573+
#: ../../library/concurrent.futures.rst:465
581574
msgid "Raised when a future operation exceeds the given timeout."
582575
msgstr "future运算超出给定的超时数值时触发。"
583576

584-
#: ../../library/concurrent.futures.rst:467
577+
#: ../../library/concurrent.futures.rst:469
585578
msgid ""
586579
"Derived from :exc:`RuntimeError`, this exception class is raised when an "
587580
"executor is broken for some reason, and cannot be used to submit or execute "
588581
"new tasks."
589582
msgstr "当执行器被某些原因中断而且不能用来提交或执行新任务时就会被引发派生于 :exc:`RuntimeError` 的异常类。"
590583

591-
#: ../../library/concurrent.futures.rst:477
584+
#: ../../library/concurrent.futures.rst:479
592585
msgid ""
593586
"Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception class"
594587
" is raised when one of the workers of a :class:`ThreadPoolExecutor` has "
@@ -597,7 +590,7 @@ msgstr ""
597590
"当 :class:`ThreadPoolExecutor` 中的其中一个工作者初始化失败时会引发派生于 "
598591
":exc:`~concurrent.futures.BrokenExecutor` 的异常类。"
599592

600-
#: ../../library/concurrent.futures.rst:487
593+
#: ../../library/concurrent.futures.rst:489
601594
msgid ""
602595
"Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly "
603596
":exc:`RuntimeError`), this exception class is raised when one of the workers"

0 commit comments

Comments
 (0)