Skip to content

Commit 6705187

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 6eb34772
1 parent 3e80af6 commit 6705187

File tree

8 files changed

+679
-676
lines changed

8 files changed

+679
-676
lines changed

library/asyncio-eventloop.po

Lines changed: 279 additions & 275 deletions
Large diffs are not rendered by default.

library/asyncio-future.po

Lines changed: 3 additions & 2 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: 2021-11-22 09:18+0000\n"
10+
"POT-Creation-Date: 2022-02-19 00:13+0000\n"
1111
"PO-Revision-Date: 2022-01-25 01:29+0800\n"
1212
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -320,7 +320,8 @@ msgstr ""
320320
"Future 狀態改為 *cancelled* 並在為回呼函式排程後回傳 ``True``\\ 。"
321321

322322
#: ../../library/asyncio-future.rst:196
323-
msgid "Added the ``msg`` parameter."
323+
#, fuzzy
324+
msgid "Added the *msg* parameter."
324325
msgstr "新增 ``msg`` 參數。"
325326

326327
#: ../../library/asyncio-future.rst:201

library/asyncio-queue.po

Lines changed: 32 additions & 35 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: 2021-10-26 16:47+0000\n"
10+
"POT-Creation-Date: 2022-02-19 00:13+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:39+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -64,44 +64,48 @@ msgid ""
6464
"always known and can be returned by calling the :meth:`qsize` method."
6565
msgstr ""
6666

67-
#: ../../library/asyncio-queue.rst:40
67+
#: ../../library/asyncio-queue.rst:39
68+
msgid "Removed the *loop* parameter."
69+
msgstr ""
70+
71+
#: ../../library/asyncio-queue.rst:43
6872
msgid "This class is :ref:`not thread safe <asyncio-multithreading>`."
6973
msgstr ""
7074

71-
#: ../../library/asyncio-queue.rst:44
75+
#: ../../library/asyncio-queue.rst:47
7276
msgid "Number of items allowed in the queue."
7377
msgstr ""
7478

75-
#: ../../library/asyncio-queue.rst:48
79+
#: ../../library/asyncio-queue.rst:51
7680
msgid "Return ``True`` if the queue is empty, ``False`` otherwise."
7781
msgstr ""
7882

79-
#: ../../library/asyncio-queue.rst:52
83+
#: ../../library/asyncio-queue.rst:55
8084
msgid "Return ``True`` if there are :attr:`maxsize` items in the queue."
8185
msgstr ""
8286

83-
#: ../../library/asyncio-queue.rst:54
87+
#: ../../library/asyncio-queue.rst:57
8488
msgid ""
8589
"If the queue was initialized with ``maxsize=0`` (the default), then :meth:"
8690
"`full()` never returns ``True``."
8791
msgstr ""
8892

89-
#: ../../library/asyncio-queue.rst:59
93+
#: ../../library/asyncio-queue.rst:62
9094
msgid ""
9195
"Remove and return an item from the queue. If queue is empty, wait until an "
9296
"item is available."
9397
msgstr ""
9498

95-
#: ../../library/asyncio-queue.rst:64
99+
#: ../../library/asyncio-queue.rst:67
96100
msgid ""
97101
"Return an item if one is immediately available, else raise :exc:`QueueEmpty`."
98102
msgstr ""
99103

100-
#: ../../library/asyncio-queue.rst:69
104+
#: ../../library/asyncio-queue.rst:72
101105
msgid "Block until all items in the queue have been received and processed."
102106
msgstr ""
103107

104-
#: ../../library/asyncio-queue.rst:71
108+
#: ../../library/asyncio-queue.rst:74
105109
msgid ""
106110
"The count of unfinished tasks goes up whenever an item is added to the "
107111
"queue. The count goes down whenever a consumer coroutine calls :meth:"
@@ -110,100 +114,93 @@ msgid ""
110114
"unblocks."
111115
msgstr ""
112116

113-
#: ../../library/asyncio-queue.rst:79
117+
#: ../../library/asyncio-queue.rst:82
114118
msgid ""
115119
"Put an item into the queue. If the queue is full, wait until a free slot is "
116120
"available before adding the item."
117121
msgstr ""
118122

119-
#: ../../library/asyncio-queue.rst:84
123+
#: ../../library/asyncio-queue.rst:87
120124
msgid "Put an item into the queue without blocking."
121125
msgstr ""
122126

123-
#: ../../library/asyncio-queue.rst:86
127+
#: ../../library/asyncio-queue.rst:89
124128
msgid "If no free slot is immediately available, raise :exc:`QueueFull`."
125129
msgstr ""
126130

127-
#: ../../library/asyncio-queue.rst:90
131+
#: ../../library/asyncio-queue.rst:93
128132
msgid "Return the number of items in the queue."
129133
msgstr ""
130134

131-
#: ../../library/asyncio-queue.rst:94
135+
#: ../../library/asyncio-queue.rst:97
132136
msgid "Indicate that a formerly enqueued task is complete."
133137
msgstr ""
134138

135-
#: ../../library/asyncio-queue.rst:96
139+
#: ../../library/asyncio-queue.rst:99
136140
msgid ""
137141
"Used by queue consumers. For each :meth:`~Queue.get` used to fetch a task, a "
138142
"subsequent call to :meth:`task_done` tells the queue that the processing on "
139143
"the task is complete."
140144
msgstr ""
141145

142-
#: ../../library/asyncio-queue.rst:100
146+
#: ../../library/asyncio-queue.rst:103
143147
msgid ""
144148
"If a :meth:`join` is currently blocking, it will resume when all items have "
145149
"been processed (meaning that a :meth:`task_done` call was received for every "
146150
"item that had been :meth:`~Queue.put` into the queue)."
147151
msgstr ""
148152

149-
#: ../../library/asyncio-queue.rst:105
153+
#: ../../library/asyncio-queue.rst:108
150154
msgid ""
151155
"Raises :exc:`ValueError` if called more times than there were items placed "
152156
"in the queue."
153157
msgstr ""
154158

155-
#: ../../library/asyncio-queue.rst:110
156-
msgid ""
157-
"The ``loop`` parameter. This function has been implicitly getting the "
158-
"current running loop since 3.7. See :ref:`What's New in 3.10's Removed "
159-
"section <whatsnew310-removed>` for more information."
160-
msgstr ""
161-
162-
#: ../../library/asyncio-queue.rst:117
159+
#: ../../library/asyncio-queue.rst:113
163160
msgid "Priority Queue"
164161
msgstr ""
165162

166-
#: ../../library/asyncio-queue.rst:121
163+
#: ../../library/asyncio-queue.rst:117
167164
msgid ""
168165
"A variant of :class:`Queue`; retrieves entries in priority order (lowest "
169166
"first)."
170167
msgstr ""
171168

172-
#: ../../library/asyncio-queue.rst:124
169+
#: ../../library/asyncio-queue.rst:120
173170
msgid "Entries are typically tuples of the form ``(priority_number, data)``."
174171
msgstr ""
175172

176-
#: ../../library/asyncio-queue.rst:129
173+
#: ../../library/asyncio-queue.rst:125
177174
msgid "LIFO Queue"
178175
msgstr ""
179176

180-
#: ../../library/asyncio-queue.rst:133
177+
#: ../../library/asyncio-queue.rst:129
181178
msgid ""
182179
"A variant of :class:`Queue` that retrieves most recently added entries first "
183180
"(last in, first out)."
184181
msgstr ""
185182

186-
#: ../../library/asyncio-queue.rst:138
183+
#: ../../library/asyncio-queue.rst:134
187184
msgid "Exceptions"
188185
msgstr "例外"
189186

190-
#: ../../library/asyncio-queue.rst:142
187+
#: ../../library/asyncio-queue.rst:138
191188
msgid ""
192189
"This exception is raised when the :meth:`~Queue.get_nowait` method is called "
193190
"on an empty queue."
194191
msgstr ""
195192

196-
#: ../../library/asyncio-queue.rst:148
193+
#: ../../library/asyncio-queue.rst:144
197194
msgid ""
198195
"Exception raised when the :meth:`~Queue.put_nowait` method is called on a "
199196
"queue that has reached its *maxsize*."
200197
msgstr ""
201198

202-
#: ../../library/asyncio-queue.rst:153
199+
#: ../../library/asyncio-queue.rst:149
203200
msgid "Examples"
204201
msgstr "範例"
205202

206-
#: ../../library/asyncio-queue.rst:157
203+
#: ../../library/asyncio-queue.rst:153
207204
msgid ""
208205
"Queues can be used to distribute workload between several concurrent tasks::"
209206
msgstr ""

0 commit comments

Comments
 (0)