@@ -10,6 +10,7 @@ msgstr ""
1010"Report-Msgid-Bugs-To : \n "
1111"POT-Creation-Date : 2018-01-05 15:01+0000\n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13+ "
Last-Translator :
ww song <[email protected] >, 2018\n "
1314"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1415"MIME-Version : 1.0\n "
1516"Content-Type : text/plain; charset=UTF-8\n "
@@ -19,11 +20,11 @@ msgstr ""
1920
2021#: ../../library/asyncio.rst:2
2122msgid ":mod:`asyncio` --- Asynchronous I/O, event loop, coroutines and tasks"
22- msgstr ""
23+ msgstr ":mod:`asyncio` --- 异步I/O,事件循环,coroutines and tasks "
2324
2425#: ../../library/asyncio.rst:9
2526msgid "**Source code:** :source:`Lib/asyncio/`"
26- msgstr ""
27+ msgstr "**源码:** :source:`Lib/asyncio/` "
2728
2829#: ../../library/asyncio.rst:13
2930msgid ""
@@ -32,53 +33,57 @@ msgid ""
3233"resources, running network clients and servers, and other related "
3334"primitives. Here is a more detailed list of the package contents:"
3435msgstr ""
36+ "工具该模块提供了使用协程编写单线程并发代码的基础结构,在套接字和其他资源上I/O访问多路复用,运行网络客户端和服务器以及其他相关元语。下面是包内容更详细的清单:"
3537
3638#: ../../library/asyncio.rst:18
3739msgid ""
3840"a pluggable :ref:`event loop <asyncio-event-loop>` with various system-"
3941"specific implementations;"
40- msgstr ""
42+ msgstr "一个可插拔的 :ref:`事件循环 <asyncio-event-loop>` 和各种系统特定的实现; "
4143
4244#: ../../library/asyncio.rst:21
4345msgid ""
4446":ref:`transport <asyncio-transport>` and :ref:`protocol <asyncio-protocol>` "
4547"abstractions (similar to those in `Twisted "
4648"<https://twistedmatrix.com/trac/>`_);"
4749msgstr ""
50+ ":ref:`transport <asyncio-transport>` 和 :ref:`protocol <asyncio-protocol>` "
51+ "的抽象(类似 `Twisted <https://twistedmatrix.com/trac/>`_); "
4852
4953#: ../../library/asyncio.rst:24
5054msgid ""
5155"concrete support for TCP, UDP, SSL, subprocess pipes, delayed calls, and "
5256"others (some may be system-dependent);"
53- msgstr ""
57+ msgstr "支持TCP, UDP, SSL, subprocess pipes, 延后的回调和其他(有些可能与系统有关); "
5458
5559#: ../../library/asyncio.rst:27
5660msgid ""
5761"a :class:`Future` class that mimics the one in the :mod:`concurrent.futures`"
5862" module, but adapted for use with the event loop;"
59- msgstr ""
63+ msgstr "一个模仿 :mod:`concurrent.futures` 模块但适配事件循环的 :class:`Future` 类 "
6064
6165#: ../../library/asyncio.rst:30
6266msgid ""
6367"coroutines and tasks based on ``yield from`` (:PEP:`380`), to help write "
6468"concurrent code in a sequential fashion;"
65- msgstr ""
69+ msgstr "基于 ``yield from`` (:PEP:`380`)的coroutines和tasks,帮助我们以顺序的方式编写并发的代码 "
6670
6771#: ../../library/asyncio.rst:33
6872msgid "cancellation support for :class:`Future`\\ s and coroutines;"
69- msgstr ""
73+ msgstr ":class:`Future` \\ s和coroutines支持取消; "
7074
7175#: ../../library/asyncio.rst:35
7276msgid ""
7377":ref:`synchronization primitives <asyncio-sync>` for use between coroutines "
7478"in a single thread, mimicking those in the :mod:`threading` module;"
7579msgstr ""
80+ "模仿 :mod:`threading` 模块的 :ref:`同步原语<asyncio-sync>` 可以在多个coroutines之间使用;"
7681
7782#: ../../library/asyncio.rst:38
7883msgid ""
7984"an interface for passing work off to a threadpool, for times when you "
8085"absolutely, positively have to use a library that makes blocking I/O calls."
81- msgstr ""
86+ msgstr "当你绝对肯定不得不使用阻塞I/O调用的库时,一个将工作传递给线程池的接口。 "
8287
8388#: ../../library/asyncio.rst:42
8489msgid ""
@@ -87,13 +92,16 @@ msgid ""
8792"lists common traps and explains how to avoid them. :ref:`Enable the debug "
8893"mode <asyncio-debug-mode>` during development to detect common issues."
8994msgstr ""
95+ "异步编程比传统的“顺序”编程更复杂:请参阅 :ref:`使用asyncio开发<asyncio-dev>` "
96+ "的页面,其中列出了常见的陷阱并解释了如何避免它们。在开发过程中 :ref:`启用调试模式<asyncio-debug-mode>` 以检测常见问题。"
9097
9198#: ../../library/asyncio.rst:47
9299msgid "Table of contents:"
93- msgstr ""
100+ msgstr "目录: "
94101
95102#: ../../library/asyncio.rst:64
96103msgid ""
97104"The :mod:`asyncio` module was designed in :PEP:`3156`. For a motivational "
98105"primer on transports and protocols, see :PEP:`3153`."
99106msgstr ""
107+ ":mod:`asyncio` 的设计在 :PEP:`3156`。设计transports和protocols的原因见: :PEP:`3153`。"
0 commit comments