7
7
msgstr ""
8
8
"Project-Id-Version :Python 3.10\n "
9
9
"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 "
11
11
"PO-Revision-Date :2018-05-23 14:39+0000\n "
12
12
"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -64,44 +64,48 @@ msgid ""
64
64
"always known and can be returned by calling the :meth:`qsize` method."
65
65
msgstr ""
66
66
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
68
72
msgid "This class is :ref:`not thread safe <asyncio-multithreading>`."
69
73
msgstr ""
70
74
71
- #: ../../library/asyncio-queue.rst:44
75
+ #: ../../library/asyncio-queue.rst:47
72
76
msgid "Number of items allowed in the queue."
73
77
msgstr ""
74
78
75
- #: ../../library/asyncio-queue.rst:48
79
+ #: ../../library/asyncio-queue.rst:51
76
80
msgid "Return ``True`` if the queue is empty, ``False`` otherwise."
77
81
msgstr ""
78
82
79
- #: ../../library/asyncio-queue.rst:52
83
+ #: ../../library/asyncio-queue.rst:55
80
84
msgid "Return ``True`` if there are :attr:`maxsize` items in the queue."
81
85
msgstr ""
82
86
83
- #: ../../library/asyncio-queue.rst:54
87
+ #: ../../library/asyncio-queue.rst:57
84
88
msgid ""
85
89
"If the queue was initialized with ``maxsize=0`` (the default), then :meth:"
86
90
"`full()` never returns ``True``."
87
91
msgstr ""
88
92
89
- #: ../../library/asyncio-queue.rst:59
93
+ #: ../../library/asyncio-queue.rst:62
90
94
msgid ""
91
95
"Remove and return an item from the queue. If queue is empty, wait until an "
92
96
"item is available."
93
97
msgstr ""
94
98
95
- #: ../../library/asyncio-queue.rst:64
99
+ #: ../../library/asyncio-queue.rst:67
96
100
msgid ""
97
101
"Return an item if one is immediately available, else raise :exc:`QueueEmpty`."
98
102
msgstr ""
99
103
100
- #: ../../library/asyncio-queue.rst:69
104
+ #: ../../library/asyncio-queue.rst:72
101
105
msgid "Block until all items in the queue have been received and processed."
102
106
msgstr ""
103
107
104
- #: ../../library/asyncio-queue.rst:71
108
+ #: ../../library/asyncio-queue.rst:74
105
109
msgid ""
106
110
"The count of unfinished tasks goes up whenever an item is added to the "
107
111
"queue. The count goes down whenever a consumer coroutine calls :meth:"
@@ -110,100 +114,93 @@ msgid ""
110
114
"unblocks."
111
115
msgstr ""
112
116
113
- #: ../../library/asyncio-queue.rst:79
117
+ #: ../../library/asyncio-queue.rst:82
114
118
msgid ""
115
119
"Put an item into the queue. If the queue is full, wait until a free slot is "
116
120
"available before adding the item."
117
121
msgstr ""
118
122
119
- #: ../../library/asyncio-queue.rst:84
123
+ #: ../../library/asyncio-queue.rst:87
120
124
msgid "Put an item into the queue without blocking."
121
125
msgstr ""
122
126
123
- #: ../../library/asyncio-queue.rst:86
127
+ #: ../../library/asyncio-queue.rst:89
124
128
msgid "If no free slot is immediately available, raise :exc:`QueueFull`."
125
129
msgstr ""
126
130
127
- #: ../../library/asyncio-queue.rst:90
131
+ #: ../../library/asyncio-queue.rst:93
128
132
msgid "Return the number of items in the queue."
129
133
msgstr ""
130
134
131
- #: ../../library/asyncio-queue.rst:94
135
+ #: ../../library/asyncio-queue.rst:97
132
136
msgid "Indicate that a formerly enqueued task is complete."
133
137
msgstr ""
134
138
135
- #: ../../library/asyncio-queue.rst:96
139
+ #: ../../library/asyncio-queue.rst:99
136
140
msgid ""
137
141
"Used by queue consumers. For each :meth:`~Queue.get` used to fetch a task, a "
138
142
"subsequent call to :meth:`task_done` tells the queue that the processing on "
139
143
"the task is complete."
140
144
msgstr ""
141
145
142
- #: ../../library/asyncio-queue.rst:100
146
+ #: ../../library/asyncio-queue.rst:103
143
147
msgid ""
144
148
"If a :meth:`join` is currently blocking, it will resume when all items have "
145
149
"been processed (meaning that a :meth:`task_done` call was received for every "
146
150
"item that had been :meth:`~Queue.put` into the queue)."
147
151
msgstr ""
148
152
149
- #: ../../library/asyncio-queue.rst:105
153
+ #: ../../library/asyncio-queue.rst:108
150
154
msgid ""
151
155
"Raises :exc:`ValueError` if called more times than there were items placed "
152
156
"in the queue."
153
157
msgstr ""
154
158
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
163
160
msgid "Priority Queue"
164
161
msgstr ""
165
162
166
- #: ../../library/asyncio-queue.rst:121
163
+ #: ../../library/asyncio-queue.rst:117
167
164
msgid ""
168
165
"A variant of :class:`Queue`; retrieves entries in priority order (lowest "
169
166
"first)."
170
167
msgstr ""
171
168
172
- #: ../../library/asyncio-queue.rst:124
169
+ #: ../../library/asyncio-queue.rst:120
173
170
msgid "Entries are typically tuples of the form ``(priority_number, data)``."
174
171
msgstr ""
175
172
176
- #: ../../library/asyncio-queue.rst:129
173
+ #: ../../library/asyncio-queue.rst:125
177
174
msgid "LIFO Queue"
178
175
msgstr ""
179
176
180
- #: ../../library/asyncio-queue.rst:133
177
+ #: ../../library/asyncio-queue.rst:129
181
178
msgid ""
182
179
"A variant of :class:`Queue` that retrieves most recently added entries first "
183
180
"(last in, first out)."
184
181
msgstr ""
185
182
186
- #: ../../library/asyncio-queue.rst:138
183
+ #: ../../library/asyncio-queue.rst:134
187
184
msgid "Exceptions"
188
185
msgstr "例外"
189
186
190
- #: ../../library/asyncio-queue.rst:142
187
+ #: ../../library/asyncio-queue.rst:138
191
188
msgid ""
192
189
"This exception is raised when the :meth:`~Queue.get_nowait` method is called "
193
190
"on an empty queue."
194
191
msgstr ""
195
192
196
- #: ../../library/asyncio-queue.rst:148
193
+ #: ../../library/asyncio-queue.rst:144
197
194
msgid ""
198
195
"Exception raised when the :meth:`~Queue.put_nowait` method is called on a "
199
196
"queue that has reached its *maxsize*."
200
197
msgstr ""
201
198
202
- #: ../../library/asyncio-queue.rst:153
199
+ #: ../../library/asyncio-queue.rst:149
203
200
msgid "Examples"
204
201
msgstr "範例"
205
202
206
- #: ../../library/asyncio-queue.rst:157
203
+ #: ../../library/asyncio-queue.rst:153
207
204
msgid ""
208
205
"Queues can be used to distribute workload between several concurrent tasks::"
209
206
msgstr ""