Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f8465a

Browse files
sync with cpython 4c989e19
1 parent85059c5 commit1f8465a

File tree

6 files changed

+265
-260
lines changed

6 files changed

+265
-260
lines changed

‎library/asynchat.po‎

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
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 ""
2222
msgid":mod:`asynchat` --- Asynchronous socket command/response handler"
2323
msgstr""
2424

25-
#:../../library/asynchat.rst:10
25+
#:../../library/asynchat.rst:11
2626
msgid"**Source code:** :source:`Lib/asynchat.py`"
2727
msgstr"**原始碼:**\\ :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."
3133
msgstr""
3234

33-
#:../../library/asynchat.rst:19
35+
#:../../library/asynchat.rst:21
3436
msgid""
3537
"This module exists for backwards compatibility only. For new code we "
3638
"recommend using :mod:`asyncio`."
3739
msgstr""
3840

39-
#:../../library/asynchat.rst:22
41+
#:../../library/asynchat.rst:24
4042
msgid""
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."
5254
msgstr""
5355

54-
#:../../library/asynchat.rst:37
56+
#:../../library/asynchat.rst:39
5557
msgid""
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."
6163
msgstr""
6264

63-
#:../../library/asynchat.rst:44
65+
#:../../library/asynchat.rst:46
6466
msgid""
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."
7072
msgstr""
7173

72-
#:../../library/asynchat.rst:50
74+
#:../../library/asynchat.rst:52
7375
msgid""
7476
"Two class attributes can be modified, to improve performance, or possibly "
7577
"even to conserve memory."
7678
msgstr""
7779

78-
#:../../library/asynchat.rst:56
80+
#:../../library/asynchat.rst:58
7981
msgid"The asynchronous input buffer size (default ``4096``)."
8082
msgstr""
8183

82-
#:../../library/asynchat.rst:61
84+
#:../../library/asynchat.rst:63
8385
msgid"The asynchronous output buffer size (default ``4096``)."
8486
msgstr""
8587

86-
#:../../library/asynchat.rst:63
88+
#:../../library/asynchat.rst:65
8789
msgid""
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."
99101
msgstr""
100102

101-
#:../../library/asynchat.rst:76
103+
#:../../library/asynchat.rst:78
102104
msgid""
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."
107109
msgstr""
108110

109-
#:../../library/asynchat.rst:84
111+
#:../../library/asynchat.rst:86
110112
msgid""
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."
113115
msgstr""
114116

115-
#:../../library/asynchat.rst:90
117+
#:../../library/asynchat.rst:92
116118
msgid""
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."
120122
msgstr""
121123

122-
#:../../library/asynchat.rst:97
124+
#:../../library/asynchat.rst:99
123125
msgid""
124126
"In emergencies this method will discard any data held in the input and/or "
125127
"output buffers and the producer queue."
126128
msgstr""
127129

128-
#:../../library/asynchat.rst:103
130+
#:../../library/asynchat.rst:105
129131
msgid""
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."
134136
msgstr""
135137

136-
#:../../library/asynchat.rst:111
138+
#:../../library/asynchat.rst:113
137139
msgid"Returns the current terminator for the channel."
138140
msgstr""
139141

140-
#:../../library/asynchat.rst:116
142+
#:../../library/asynchat.rst:118
141143
msgid""
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."
146148
msgstr""
147149

148-
#:../../library/asynchat.rst:124
150+
#:../../library/asynchat.rst:126
149151
msgid""
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."
154156
msgstr""
155157

156-
#:../../library/asynchat.rst:132
158+
#:../../library/asynchat.rst:134
157159
msgid""
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."
161163
msgstr""
162164

163-
#:../../library/asynchat.rst:137
165+
#:../../library/asynchat.rst:139
164166
msgid"term"
165167
msgstr""
166168

167-
#:../../library/asynchat.rst:137
169+
#:../../library/asynchat.rst:139
168170
msgid"Description"
169171
msgstr"描述"
170172

171-
#:../../library/asynchat.rst:139
173+
#:../../library/asynchat.rst:141
172174
msgid"*string*"
173175
msgstr""
174176

175-
#:../../library/asynchat.rst:139
177+
#:../../library/asynchat.rst:141
176178
msgid""
177179
"Will call :meth:`found_terminator` when the string is found in the input "
178180
"stream"
179181
msgstr""
180182

181-
#:../../library/asynchat.rst:142
183+
#:../../library/asynchat.rst:144
182184
msgid"*integer*"
183185
msgstr""
184186

185-
#:../../library/asynchat.rst:142
187+
#:../../library/asynchat.rst:144
186188
msgid""
187189
"Will call :meth:`found_terminator` when the indicated number of characters "
188190
"have been received"
189191
msgstr""
190192

191-
#:../../library/asynchat.rst:146
193+
#:../../library/asynchat.rst:148
192194
msgid"``None``"
193195
msgstr"``None``"
194196

195-
#:../../library/asynchat.rst:146
197+
#:../../library/asynchat.rst:148
196198
msgid"The channel continues to collect data forever"
197199
msgstr""
198200

199-
#:../../library/asynchat.rst:150
201+
#:../../library/asynchat.rst:152
200202
msgid""
201203
"Note that any data following the terminator will be available for reading by "
202204
"the channel after :meth:`found_terminator` is called."
203205
msgstr""
204206

205-
#:../../library/asynchat.rst:157
207+
#:../../library/asynchat.rst:159
206208
msgid"asynchat Example"
207209
msgstr""
208210

209-
#:../../library/asynchat.rst:159
211+
#:../../library/asynchat.rst:161
210212
msgid""
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."
217219
msgstr""
218220

219-
#:../../library/asynchat.rst:166
221+
#:../../library/asynchat.rst:168
220222
msgid""
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."
225227
msgstr""
226228

227-
#:../../library/asynchat.rst:171
229+
#:../../library/asynchat.rst:173
228230
msgid""
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 "

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp