1010#, fuzzy
1111msgid ""
1212msgstr ""
13- "Project-Id-Version : Python 3.14 \n "
13+ "Project-Id-Version : Python 3.15 \n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-10-09 14:15 +0000\n "
15+ "POT-Creation-Date : 2026-07-11 14:46 +0000\n "
1616"PO-Revision-Date : 2025-09-16 00:00+0000\n "
1717"Last-Translator : Vladimir, 2025\n "
1818"Language-Team : Russian (https://app.transifex.com/python-doc/teams/5390/ru/)\n "
@@ -112,11 +112,16 @@ msgid ""
112112":exc:`QueueEmpty`."
113113msgstr ""
114114
115- #: ../../library/asyncio-queue.rst:77
116- msgid "Block until all items in the queue have been received and processed."
115+ #: ../../library/asyncio-queue.rst:74
116+ msgid ""
117+ "Raises :exc:`QueueShutDown` if the queue has been shut down and is empty."
117118msgstr ""
118119
119120#: ../../library/asyncio-queue.rst:79
121+ msgid "Block until all items in the queue have been received and processed."
122+ msgstr ""
123+
124+ #: ../../library/asyncio-queue.rst:81
120125msgid ""
121126"The count of unfinished tasks goes up whenever an item is added to the "
122127"queue. The count goes down whenever a consumer coroutine calls "
@@ -125,155 +130,157 @@ msgid ""
125130":meth:`join` unblocks."
126131msgstr ""
127132
128- #: ../../library/asyncio-queue.rst:88
133+ #: ../../library/asyncio-queue.rst:90
129134msgid ""
130135"Put an item into the queue. If the queue is full, wait until a free slot is "
131136"available before adding the item."
132137msgstr ""
133138
134- #: ../../library/asyncio-queue.rst:91
139+ #: ../../library/asyncio-queue.rst:93 ../../library/asyncio-queue.rst:101
135140msgid "Raises :exc:`QueueShutDown` if the queue has been shut down."
136141msgstr ""
137142
138- #: ../../library/asyncio-queue.rst:95
143+ #: ../../library/asyncio-queue.rst:97
139144msgid "Put an item into the queue without blocking."
140145msgstr ""
141146
142- #: ../../library/asyncio-queue.rst:97
147+ #: ../../library/asyncio-queue.rst:99
143148msgid "If no free slot is immediately available, raise :exc:`QueueFull`."
144149msgstr ""
145150
146- #: ../../library/asyncio-queue.rst:101
151+ #: ../../library/asyncio-queue.rst:105
147152msgid "Return the number of items in the queue."
148153msgstr ""
149154
150- #: ../../library/asyncio-queue.rst:105
155+ #: ../../library/asyncio-queue.rst:109
151156msgid "Put a :class:`Queue` instance into a shutdown mode."
152157msgstr ""
153158
154- #: ../../library/asyncio-queue.rst:107
159+ #: ../../library/asyncio-queue.rst:111
155160msgid ""
156161"The queue can no longer grow. Future calls to :meth:`~Queue.put` raise "
157162":exc:`QueueShutDown`. Currently blocked callers of :meth:`~Queue.put` will "
158- "be unblocked and will raise :exc:`QueueShutDown` in the formerly blocked "
159- "thread ."
163+ "be unblocked and will raise :exc:`QueueShutDown` in the formerly awaiting "
164+ "task ."
160165msgstr ""
161166
162- #: ../../library/asyncio-queue.rst:112
167+ #: ../../library/asyncio-queue.rst:116
163168msgid ""
164169"If *immediate* is false (the default), the queue can be wound down normally "
165170"with :meth:`~Queue.get` calls to extract tasks that have already been "
166171"loaded."
167172msgstr ""
168173
169- #: ../../library/asyncio-queue.rst:116
174+ #: ../../library/asyncio-queue.rst:120
170175msgid ""
171176"And if :meth:`~Queue.task_done` is called for each remaining task, a pending"
172177" :meth:`~Queue.join` will be unblocked normally."
173178msgstr ""
174179
175- #: ../../library/asyncio-queue.rst:119
180+ #: ../../library/asyncio-queue.rst:123
176181msgid ""
177182"Once the queue is empty, future calls to :meth:`~Queue.get` will raise "
178183":exc:`QueueShutDown`."
179184msgstr ""
180185
181- #: ../../library/asyncio-queue.rst:122
186+ #: ../../library/asyncio-queue.rst:126
182187msgid ""
183188"If *immediate* is true, the queue is terminated immediately. The queue is "
184- "drained to be completely empty. All callers of :meth:`~Queue.join` are "
185- "unblocked regardless of the number of unfinished tasks. Blocked callers of "
189+ "drained to be completely empty and the count of unfinished tasks is reduced "
190+ "by the number of tasks drained. If unfinished tasks is zero, callers of "
191+ ":meth:`~Queue.join` are unblocked. Also, blocked callers of "
186192":meth:`~Queue.get` are unblocked and will raise :exc:`QueueShutDown` because"
187193" the queue is empty."
188194msgstr ""
189195
190- #: ../../library/asyncio-queue.rst:129
196+ #: ../../library/asyncio-queue.rst:134
191197msgid ""
192198"Use caution when using :meth:`~Queue.join` with *immediate* set to true. "
193199"This unblocks the join even when no work has been done on the tasks, "
194200"violating the usual invariant for joining a queue."
195201msgstr ""
196202
197- #: ../../library/asyncio-queue.rst:137
203+ #: ../../library/asyncio-queue.rst:142
198204msgid "Indicate that a formerly enqueued work item is complete."
199205msgstr ""
200206
201- #: ../../library/asyncio-queue.rst:139
207+ #: ../../library/asyncio-queue.rst:144
202208msgid ""
203209"Used by queue consumers. For each :meth:`~Queue.get` used to fetch a work "
204210"item, a subsequent call to :meth:`task_done` tells the queue that the "
205211"processing on the work item is complete."
206212msgstr ""
207213
208- #: ../../library/asyncio-queue.rst:143
214+ #: ../../library/asyncio-queue.rst:148
209215msgid ""
210216"If a :meth:`join` is currently blocking, it will resume when all items have "
211217"been processed (meaning that a :meth:`task_done` call was received for every"
212218" item that had been :meth:`~Queue.put` into the queue)."
213219msgstr ""
214220
215- #: ../../library/asyncio-queue.rst:148
221+ #: ../../library/asyncio-queue.rst:153
216222msgid ""
217223"Raises :exc:`ValueError` if called more times than there were items placed "
218224"in the queue."
219225msgstr ""
220226
221- #: ../../library/asyncio-queue.rst:153
227+ #: ../../library/asyncio-queue.rst:158
222228msgid "Priority Queue"
223229msgstr ""
224230
225- #: ../../library/asyncio-queue.rst:157
231+ #: ../../library/asyncio-queue.rst:162
226232msgid ""
227233"A variant of :class:`Queue`; retrieves entries in priority order (lowest "
228234"first)."
229235msgstr ""
230236
231- #: ../../library/asyncio-queue.rst:160
237+ #: ../../library/asyncio-queue.rst:165
232238msgid "Entries are typically tuples of the form ``(priority_number, data)``."
233239msgstr ""
234240
235- #: ../../library/asyncio-queue.rst:165
241+ #: ../../library/asyncio-queue.rst:170
236242msgid "LIFO Queue"
237243msgstr ""
238244
239- #: ../../library/asyncio-queue.rst:169
245+ #: ../../library/asyncio-queue.rst:174
240246msgid ""
241247"A variant of :class:`Queue` that retrieves most recently added entries first"
242248" (last in, first out)."
243249msgstr ""
244250
245- #: ../../library/asyncio-queue.rst:174
251+ #: ../../library/asyncio-queue.rst:179
246252msgid "Exceptions"
247253msgstr ""
248254
249- #: ../../library/asyncio-queue.rst:178
255+ #: ../../library/asyncio-queue.rst:183
250256msgid ""
251257"This exception is raised when the :meth:`~Queue.get_nowait` method is called"
252258" on an empty queue."
253259msgstr ""
254260
255- #: ../../library/asyncio-queue.rst:184
261+ #: ../../library/asyncio-queue.rst:189
256262msgid ""
257263"Exception raised when the :meth:`~Queue.put_nowait` method is called on a "
258264"queue that has reached its *maxsize*."
259265msgstr ""
260266
261- #: ../../library/asyncio-queue.rst:190
267+ #: ../../library/asyncio-queue.rst:195
262268msgid ""
263- "Exception raised when :meth:`~Queue.put` or :meth:`~Queue.get` is called on "
264- "a queue which has been shut down."
269+ "Exception raised when :meth:`~Queue.put`, :meth:`~Queue.put_nowait`, "
270+ ":meth:`~Queue.get` or :meth:`~Queue.get_nowait` is called on a queue which "
271+ "has been shut down."
265272msgstr ""
266273
267- #: ../../library/asyncio-queue.rst:197
274+ #: ../../library/asyncio-queue.rst:203
268275msgid "Examples"
269276msgstr ""
270277
271- #: ../../library/asyncio-queue.rst:201
278+ #: ../../library/asyncio-queue.rst:207
272279msgid ""
273280"Queues can be used to distribute workload between several concurrent tasks::"
274281msgstr ""
275282
276- #: ../../library/asyncio-queue.rst:204
283+ #: ../../library/asyncio-queue.rst:210
277284msgid ""
278285"import asyncio\n"
279286"import random\n"
0 commit comments