88msgstr ""
99"Project-Id-Version : Python 3.6\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-01-05 15:01+0000 \n "
11+ "POT-Creation-Date : 2018-05-30 13:28+0900 \n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"
Last-Translator :
Shengjing Zhu <[email protected] >, 2018\n "
1414"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -651,81 +651,87 @@ msgid ""
651651"cancellation of one child to cause other children to be cancelled.)"
652652msgstr ""
653653
654- #: ../../library/asyncio-task.rst:573
654+ #: ../../library/asyncio-task.rst:571
655+ msgid ""
656+ "If the *gather* itself is cancelled, the cancellation is propagated "
657+ "regardless of *return_exceptions*."
658+ msgstr ""
659+
660+ #: ../../library/asyncio-task.rst:577
655661msgid ""
656662"Return ``True`` if *obj* is a :ref:`coroutine object <coroutine>`, which may"
657663" be based on a generator or an :keyword:`async def` coroutine."
658664msgstr ""
659665
660- #: ../../library/asyncio-task.rst:578
666+ #: ../../library/asyncio-task.rst:582
661667msgid ""
662668"Return ``True`` if *func* is determined to be a :ref:`coroutine function "
663669"<coroutine>`, which may be a decorated generator function or an "
664670":keyword:`async def` function."
665671msgstr ""
666672
667- #: ../../library/asyncio-task.rst:584
673+ #: ../../library/asyncio-task.rst:588
668674msgid "Submit a :ref:`coroutine object <coroutine>` to a given event loop."
669675msgstr ""
670676
671- #: ../../library/asyncio-task.rst:586
677+ #: ../../library/asyncio-task.rst:590
672678msgid "Return a :class:`concurrent.futures.Future` to access the result."
673679msgstr ""
674680
675- #: ../../library/asyncio-task.rst:588
681+ #: ../../library/asyncio-task.rst:592
676682msgid ""
677683"This function is meant to be called from a different thread than the one "
678684"where the event loop is running. Usage::"
679685msgstr ""
680686
681- #: ../../library/asyncio-task.rst:598
687+ #: ../../library/asyncio-task.rst:602
682688msgid ""
683689"If an exception is raised in the coroutine, the returned future will be "
684690"notified. It can also be used to cancel the task in the event loop::"
685691msgstr ""
686692
687- #: ../../library/asyncio-task.rst:611
693+ #: ../../library/asyncio-task.rst:615
688694msgid ""
689695"See the :ref:`concurrency and multithreading <asyncio-multithreading>` "
690696"section of the documentation."
691697msgstr "查看 :ref:`并发和多线程<asyncio-multithreading>` 章节的文档。"
692698
693- #: ../../library/asyncio-task.rst:616
699+ #: ../../library/asyncio-task.rst:620
694700msgid ""
695701"Unlike other functions from the module, :func:`run_coroutine_threadsafe` "
696702"requires the *loop* argument to be passed explicitly."
697703msgstr ""
698704
699- #: ../../library/asyncio-task.rst:624
705+ #: ../../library/asyncio-task.rst:628
700706msgid ""
701707"Create a :ref:`coroutine <coroutine>` that completes after a given time (in "
702708"seconds). If *result* is provided, it is produced to the caller when the "
703709"coroutine completes."
704710msgstr ""
705711
706- #: ../../library/asyncio-task.rst:628
712+ #: ../../library/asyncio-task.rst:632
707713msgid ""
708714"The resolution of the sleep depends on the :ref:`granularity of the event "
709715"loop <asyncio-delayed-calls>`."
710716msgstr ""
711717
712- #: ../../library/asyncio-task.rst:631 ../../library/asyncio-task.rst:695
718+ #: ../../library/asyncio-task.rst:635 ../../library/asyncio-task.rst:699
713719msgid "This function is a :ref:`coroutine <coroutine>`."
714720msgstr ""
715721
716- #: ../../library/asyncio-task.rst:635
722+ #: ../../library/asyncio-task.rst:639
717723msgid "Wait for a future, shielding it from cancellation."
718724msgstr ""
719725
720- #: ../../library/asyncio-task.rst:637
726+ #: ../../library/asyncio-task.rst:641
721727msgid "The statement::"
722728msgstr ""
723729
724- #: ../../library/asyncio-task.rst:641
730+ #: ../../library/asyncio-task.rst:645
725731msgid "is exactly equivalent to the statement::"
726732msgstr ""
727733
728- #: ../../library/asyncio-task.rst:645
734+ #: ../../library/asyncio-task.rst:649
729735msgid ""
730736"*except* that if the coroutine containing it is cancelled, the task running "
731737"in ``something()`` is not cancelled. From the point of view of "
@@ -735,107 +741,107 @@ msgid ""
735741"cancelled by other means this will still cancel ``shield()``."
736742msgstr ""
737743
738- #: ../../library/asyncio-task.rst:652
744+ #: ../../library/asyncio-task.rst:656
739745msgid ""
740746"If you want to completely ignore cancellation (not recommended) you can "
741747"combine ``shield()`` with a try/except clause, as follows::"
742748msgstr ""
743749
744- #: ../../library/asyncio-task.rst:664
750+ #: ../../library/asyncio-task.rst:668
745751msgid ""
746752"Wait for the Futures and coroutine objects given by the sequence *futures* "
747753"to complete. Coroutines will be wrapped in Tasks. Returns two sets of "
748754":class:`Future`: (done, pending)."
749755msgstr ""
750756
751- #: ../../library/asyncio-task.rst:668
757+ #: ../../library/asyncio-task.rst:672
752758msgid "The sequence *futures* must not be empty."
753759msgstr ""
754760
755- #: ../../library/asyncio-task.rst:670
761+ #: ../../library/asyncio-task.rst:674
756762msgid ""
757763"*timeout* can be used to control the maximum number of seconds to wait "
758764"before returning. *timeout* can be an int or float. If *timeout* is not "
759765"specified or ``None``, there is no limit to the wait time."
760766msgstr ""
761767
762- #: ../../library/asyncio-task.rst:674
768+ #: ../../library/asyncio-task.rst:678
763769msgid ""
764770"*return_when* indicates when this function should return. It must be one of"
765771" the following constants of the :mod:`concurrent.futures` module:"
766772msgstr ""
767773
768- #: ../../library/asyncio-task.rst:680
774+ #: ../../library/asyncio-task.rst:684
769775msgid "Constant"
770776msgstr ""
771777
772- #: ../../library/asyncio-task.rst:680
778+ #: ../../library/asyncio-task.rst:684
773779msgid "Description"
774780msgstr ""
775781
776- #: ../../library/asyncio-task.rst:682
782+ #: ../../library/asyncio-task.rst:686
777783msgid ":const:`FIRST_COMPLETED`"
778784msgstr ""
779785
780- #: ../../library/asyncio-task.rst:682
786+ #: ../../library/asyncio-task.rst:686
781787msgid "The function will return when any future finishes or is cancelled."
782788msgstr ""
783789
784- #: ../../library/asyncio-task.rst:685
790+ #: ../../library/asyncio-task.rst:689
785791msgid ":const:`FIRST_EXCEPTION`"
786792msgstr ""
787793
788- #: ../../library/asyncio-task.rst:685
794+ #: ../../library/asyncio-task.rst:689
789795msgid ""
790796"The function will return when any future finishes by raising an exception. "
791797"If no future raises an exception then it is equivalent to "
792798":const:`ALL_COMPLETED`."
793799msgstr ""
794800
795- #: ../../library/asyncio-task.rst:691
801+ #: ../../library/asyncio-task.rst:695
796802msgid ":const:`ALL_COMPLETED`"
797803msgstr ""
798804
799- #: ../../library/asyncio-task.rst:691
805+ #: ../../library/asyncio-task.rst:695
800806msgid "The function will return when all futures finish or are cancelled."
801807msgstr ""
802808
803- #: ../../library/asyncio-task.rst:697
809+ #: ../../library/asyncio-task.rst:701
804810msgid "Usage::"
805811msgstr ""
806812
807- #: ../../library/asyncio-task.rst:703
813+ #: ../../library/asyncio-task.rst:707
808814msgid ""
809815"This does not raise :exc:`asyncio.TimeoutError`! Futures that aren't done "
810816"when the timeout occurs are returned in the second set."
811817msgstr ""
812818
813- #: ../../library/asyncio-task.rst:709
819+ #: ../../library/asyncio-task.rst:713
814820msgid ""
815821"Wait for the single :class:`Future` or :ref:`coroutine object <coroutine>` "
816822"to complete with timeout. If *timeout* is ``None``, block until the future "
817823"completes."
818824msgstr ""
819825
820- #: ../../library/asyncio-task.rst:713
826+ #: ../../library/asyncio-task.rst:717
821827msgid "Coroutine will be wrapped in :class:`Task`."
822828msgstr ""
823829
824- #: ../../library/asyncio-task.rst:715
830+ #: ../../library/asyncio-task.rst:719
825831msgid ""
826832"Returns result of the Future or coroutine. When a timeout occurs, it "
827833"cancels the task and raises :exc:`asyncio.TimeoutError`. To avoid the task "
828834"cancellation, wrap it in :func:`shield`."
829835msgstr ""
830836
831- #: ../../library/asyncio-task.rst:719
837+ #: ../../library/asyncio-task.rst:723
832838msgid "If the wait is cancelled, the future *fut* is also cancelled."
833839msgstr ""
834840
835- #: ../../library/asyncio-task.rst:721
841+ #: ../../library/asyncio-task.rst:725
836842msgid "This function is a :ref:`coroutine <coroutine>`, usage::"
837843msgstr ""
838844
839- #: ../../library/asyncio-task.rst:725
845+ #: ../../library/asyncio-task.rst:729
840846msgid "If the wait is cancelled, the future *fut* is now also cancelled."
841847msgstr ""
0 commit comments