77msgstr ""
88"Project-Id-Version :Python 3.10\n "
99"Report-Msgid-Bugs-To :\n "
10- "POT-Creation-Date :2018-06-26 18:54+0800 \n "
10+ "POT-Creation-Date :2022-03-21 00:13+0000 \n "
1111"PO-Revision-Date :2018-05-23 14:38+0000\n "
1212"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
1313"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -22,21 +22,23 @@ msgstr ""
2222msgid ":mod:`asynchat` --- Asynchronous socket command/response handler"
2323msgstr ""
2424
25- #: ../../library/asynchat.rst:10
25+ #: ../../library/asynchat.rst:11
2626msgid "**Source code:** :source:`Lib/asynchat.py`"
2727msgstr "**原始碼:**\\ :source:`Lib/asynchat.py`"
2828
29- #: ../../library/asynchat.rst:12
30- msgid "Please use :mod:`asyncio` instead."
29+ #: ../../library/asynchat.rst:13
30+ msgid ""
31+ ":mod:`asynchat` will be removed in Python 3.12 (:pep:`594`). Please use :mod:"
32+ "`asyncio` instead."
3133msgstr ""
3234
33- #: ../../library/asynchat.rst:19
35+ #: ../../library/asynchat.rst:21
3436msgid ""
3537"This module exists for backwards compatibility only. For new code we "
3638"recommend using :mod:`asyncio`."
3739msgstr ""
3840
39- #: ../../library/asynchat.rst:22
41+ #: ../../library/asynchat.rst:24
4042msgid ""
4143"This module builds on the :mod:`asyncore` infrastructure, simplifying "
4244"asynchronous clients and servers and making it easier to handle protocols "
@@ -51,7 +53,7 @@ msgid ""
5153"connection requests."
5254msgstr ""
5355
54- #: ../../library/asynchat.rst:37
56+ #: ../../library/asynchat.rst:39
5557msgid ""
5658"This class is an abstract subclass of :class:`asyncore.dispatcher`. To make "
5759"practical use of the code you must subclass :class:`async_chat`, providing "
@@ -60,7 +62,7 @@ msgid ""
6062"all make sense in a message/response context."
6163msgstr ""
6264
63- #: ../../library/asynchat.rst:44
65+ #: ../../library/asynchat.rst:46
6466msgid ""
6567"Like :class:`asyncore.dispatcher`, :class:`async_chat` defines a set of "
6668"events that are generated by an analysis of socket conditions after a :c:"
@@ -69,21 +71,21 @@ msgid ""
6971"with no action on the part of the programmer."
7072msgstr ""
7173
72- #: ../../library/asynchat.rst:50
74+ #: ../../library/asynchat.rst:52
7375msgid ""
7476"Two class attributes can be modified, to improve performance, or possibly "
7577"even to conserve memory."
7678msgstr ""
7779
78- #: ../../library/asynchat.rst:56
80+ #: ../../library/asynchat.rst:58
7981msgid "The asynchronous input buffer size (default ``4096``)."
8082msgstr ""
8183
82- #: ../../library/asynchat.rst:61
84+ #: ../../library/asynchat.rst:63
8385msgid "The asynchronous output buffer size (default ``4096``)."
8486msgstr ""
8587
86- #: ../../library/asynchat.rst:63
88+ #: ../../library/asynchat.rst:65
8789msgid ""
8890"Unlike :class:`asyncore.dispatcher`, :class:`async_chat` allows you to "
8991"define a :abbr:`FIFO (first-in, first-out)` queue of *producers*. A producer "
@@ -98,115 +100,115 @@ msgid ""
98100"transmission from the remote endpoint."
99101msgstr ""
100102
101- #: ../../library/asynchat.rst:76
103+ #: ../../library/asynchat.rst:78
102104msgid ""
103105"To build a functioning :class:`async_chat` subclass your input methods :"
104106"meth:`collect_incoming_data` and :meth:`found_terminator` must handle the "
105107"data that the channel receives asynchronously. The methods are described "
106108"below."
107109msgstr ""
108110
109- #: ../../library/asynchat.rst:84
111+ #: ../../library/asynchat.rst:86
110112msgid ""
111113"Pushes a ``None`` on to the producer queue. When this producer is popped off "
112114"the queue it causes the channel to be closed."
113115msgstr ""
114116
115- #: ../../library/asynchat.rst:90
117+ #: ../../library/asynchat.rst:92
116118msgid ""
117119"Called with *data* holding an arbitrary amount of received data. The "
118120"default method, which must be overridden, raises a :exc:"
119121"`NotImplementedError` exception."
120122msgstr ""
121123
122- #: ../../library/asynchat.rst:97
124+ #: ../../library/asynchat.rst:99
123125msgid ""
124126"In emergencies this method will discard any data held in the input and/or "
125127"output buffers and the producer queue."
126128msgstr ""
127129
128- #: ../../library/asynchat.rst:103
130+ #: ../../library/asynchat.rst:105
129131msgid ""
130132"Called when the incoming data stream matches the termination condition set "
131133"by :meth:`set_terminator`. The default method, which must be overridden, "
132134"raises a :exc:`NotImplementedError` exception. The buffered input data "
133135"should be available via an instance attribute."
134136msgstr ""
135137
136- #: ../../library/asynchat.rst:111
138+ #: ../../library/asynchat.rst:113
137139msgid "Returns the current terminator for the channel."
138140msgstr ""
139141
140- #: ../../library/asynchat.rst:116
142+ #: ../../library/asynchat.rst:118
141143msgid ""
142144"Pushes data on to the channel's queue to ensure its transmission. This is "
143145"all you need to do to have the channel write the data out to the network, "
144146"although it is possible to use your own producers in more complex schemes to "
145147"implement encryption and chunking, for example."
146148msgstr ""
147149
148- #: ../../library/asynchat.rst:124
150+ #: ../../library/asynchat.rst:126
149151msgid ""
150152"Takes a producer object and adds it to the producer queue associated with "
151153"the channel. When all currently-pushed producers have been exhausted the "
152154"channel will consume this producer's data by calling its :meth:`more` method "
153155"and send the data to the remote endpoint."
154156msgstr ""
155157
156- #: ../../library/asynchat.rst:132
158+ #: ../../library/asynchat.rst:134
157159msgid ""
158160"Sets the terminating condition to be recognized on the channel. ``term`` "
159161"may be any of three types of value, corresponding to three different ways to "
160162"handle incoming protocol data."
161163msgstr ""
162164
163- #: ../../library/asynchat.rst:137
165+ #: ../../library/asynchat.rst:139
164166msgid "term"
165167msgstr ""
166168
167- #: ../../library/asynchat.rst:137
169+ #: ../../library/asynchat.rst:139
168170msgid "Description"
169171msgstr "描述"
170172
171- #: ../../library/asynchat.rst:139
173+ #: ../../library/asynchat.rst:141
172174msgid "*string*"
173175msgstr ""
174176
175- #: ../../library/asynchat.rst:139
177+ #: ../../library/asynchat.rst:141
176178msgid ""
177179"Will call :meth:`found_terminator` when the string is found in the input "
178180"stream"
179181msgstr ""
180182
181- #: ../../library/asynchat.rst:142
183+ #: ../../library/asynchat.rst:144
182184msgid "*integer*"
183185msgstr ""
184186
185- #: ../../library/asynchat.rst:142
187+ #: ../../library/asynchat.rst:144
186188msgid ""
187189"Will call :meth:`found_terminator` when the indicated number of characters "
188190"have been received"
189191msgstr ""
190192
191- #: ../../library/asynchat.rst:146
193+ #: ../../library/asynchat.rst:148
192194msgid "``None``"
193195msgstr "``None``"
194196
195- #: ../../library/asynchat.rst:146
197+ #: ../../library/asynchat.rst:148
196198msgid "The channel continues to collect data forever"
197199msgstr ""
198200
199- #: ../../library/asynchat.rst:150
201+ #: ../../library/asynchat.rst:152
200202msgid ""
201203"Note that any data following the terminator will be available for reading by "
202204"the channel after :meth:`found_terminator` is called."
203205msgstr ""
204206
205- #: ../../library/asynchat.rst:157
207+ #: ../../library/asynchat.rst:159
206208msgid "asynchat Example"
207209msgstr ""
208210
209- #: ../../library/asynchat.rst:159
211+ #: ../../library/asynchat.rst:161
210212msgid ""
211213"The following partial example shows how HTTP requests can be read with :"
212214"class:`async_chat`. A web server might create an :class:"
@@ -216,15 +218,15 @@ msgid ""
216218"read."
217219msgstr ""
218220
219- #: ../../library/asynchat.rst:166
221+ #: ../../library/asynchat.rst:168
220222msgid ""
221223"Once the headers have been read, if the request is of type POST (indicating "
222224"that further data are present in the input stream) then the ``Content-Length:"
223225"`` header is used to set a numeric terminator to read the right amount of "
224226"data from the channel."
225227msgstr ""
226228
227- #: ../../library/asynchat.rst:171
229+ #: ../../library/asynchat.rst:173
228230msgid ""
229231"The :meth:`handle_request` method is called once all relevant input has been "
230232"marshalled, after setting the channel terminator to ``None`` to ensure that "