@@ -129,25 +129,28 @@ msgid ""
129129"data that the channel receives asynchronously. The methods are described "
130130"below."
131131msgstr ""
132+ "要构建一个可用的 :class:`async_chat` 子类,你的输入方法 :meth:`collect_incoming_data` 和 "
133+ ":meth:`found_terminator` 必须要处理通道异步接收的数据。 这些参数的描述见下文。"
132134
133135#: ../../library/asynchat.rst:84
134136msgid ""
135137"Pushes a ``None`` on to the producer queue. When this producer is popped off"
136138" the queue it causes the channel to be closed."
137- msgstr ""
139+ msgstr "将 ``None`` 推入生产者队列。 当此生产者被弹出队列时它将导致通道被关闭。 "
138140
139141#: ../../library/asynchat.rst:90
140142msgid ""
141143"Called with *data* holding an arbitrary amount of received data. The "
142144"default method, which must be overridden, raises a "
143145":exc:`NotImplementedError` exception."
144146msgstr ""
147+ "调用时附带 *data*,其中包含任意数量的已接收数据。 必须被重载的默认方法将引发一个 :exc:`NotImplementedError` 异常。"
145148
146149#: ../../library/asynchat.rst:97
147150msgid ""
148151"In emergencies this method will discard any data held in the input and/or "
149152"output buffers and the producer queue."
150- msgstr ""
153+ msgstr "在紧急情况下此方法将丢弃输入和/或输出缓冲区以及生产者队列中的任何数据。 "
151154
152155#: ../../library/asynchat.rst:103
153156msgid ""
@@ -156,10 +159,12 @@ msgid ""
156159"raises a :exc:`NotImplementedError` exception. The buffered input data "
157160"should be available via an instance attribute."
158161msgstr ""
162+ "当输入数据流能匹配 :meth:`set_terminator` 所设定的终结条件时会被调用。 必须被重载的默认方法将引发一个 "
163+ ":exc:`NotImplementedError` 异常。 被缓冲的输入数据应当可以通过实例属性来获取。"
159164
160165#: ../../library/asynchat.rst:111
161166msgid "Returns the current terminator for the channel."
162- msgstr ""
167+ msgstr "返回通道的当前终结器。 "
163168
164169#: ../../library/asynchat.rst:116
165170msgid ""
@@ -168,6 +173,8 @@ msgid ""
168173"although it is possible to use your own producers in more complex schemes to"
169174" implement encryption and chunking, for example."
170175msgstr ""
176+ "将数据推入通道的队列以确保其被传输。 "
177+ "要让通道将数据写到网络中你只需要这样做就足够了,虽然以更复杂的方式使用你自己的生产者也是有可能的,例如为了实现加密和分块。"
171178
172179#: ../../library/asynchat.rst:124
173180msgid ""
@@ -176,6 +183,8 @@ msgid ""
176183"channel will consume this producer's data by calling its :meth:`more` method"
177184" and send the data to the remote endpoint."
178185msgstr ""
186+ "获取一个生产者对象并将其加入到与通道相关联的生产者队列中。 当所有当前已推入的生产者都已被耗尽时通道将通过调用其 :meth:`more` "
187+ "方法来耗用此生产者的数据并将数据发送至远程端点。"
179188
180189#: ../../library/asynchat.rst:132
181190msgid ""
0 commit comments