11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2025 , Python Software Foundation
2+ # Copyright (C) 2001-2026 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.13\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-09-25 15:05 +0000\n "
15+ "POT-Creation-Date : 2026-07-11 16:22 +0000\n "
1616"PO-Revision-Date : 2025-09-15 01:03+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,60 +130,60 @@ 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 "
184189"drained to be completely empty and the count of unfinished tasks is reduced "
@@ -188,93 +193,94 @@ msgid ""
188193" the queue is empty."
189194msgstr ""
190195
191- #: ../../library/asyncio-queue.rst:130
196+ #: ../../library/asyncio-queue.rst:134
192197msgid ""
193198"Use caution when using :meth:`~Queue.join` with *immediate* set to true. "
194199"This unblocks the join even when no work has been done on the tasks, "
195200"violating the usual invariant for joining a queue."
196201msgstr ""
197202
198- #: ../../library/asyncio-queue.rst:138
203+ #: ../../library/asyncio-queue.rst:142
199204msgid "Indicate that a formerly enqueued work item is complete."
200205msgstr ""
201206
202- #: ../../library/asyncio-queue.rst:140
207+ #: ../../library/asyncio-queue.rst:144
203208msgid ""
204209"Used by queue consumers. For each :meth:`~Queue.get` used to fetch a work "
205210"item, a subsequent call to :meth:`task_done` tells the queue that the "
206211"processing on the work item is complete."
207212msgstr ""
208213
209- #: ../../library/asyncio-queue.rst:144
214+ #: ../../library/asyncio-queue.rst:148
210215msgid ""
211216"If a :meth:`join` is currently blocking, it will resume when all items have "
212217"been processed (meaning that a :meth:`task_done` call was received for every"
213218" item that had been :meth:`~Queue.put` into the queue)."
214219msgstr ""
215220
216- #: ../../library/asyncio-queue.rst:149
221+ #: ../../library/asyncio-queue.rst:153
217222msgid ""
218223"Raises :exc:`ValueError` if called more times than there were items placed "
219224"in the queue."
220225msgstr ""
221226
222- #: ../../library/asyncio-queue.rst:154
227+ #: ../../library/asyncio-queue.rst:158
223228msgid "Priority Queue"
224229msgstr ""
225230
226- #: ../../library/asyncio-queue.rst:158
231+ #: ../../library/asyncio-queue.rst:162
227232msgid ""
228233"A variant of :class:`Queue`; retrieves entries in priority order (lowest "
229234"first)."
230235msgstr ""
231236
232- #: ../../library/asyncio-queue.rst:161
237+ #: ../../library/asyncio-queue.rst:165
233238msgid "Entries are typically tuples of the form ``(priority_number, data)``."
234239msgstr ""
235240
236- #: ../../library/asyncio-queue.rst:166
241+ #: ../../library/asyncio-queue.rst:170
237242msgid "LIFO Queue"
238243msgstr ""
239244
240- #: ../../library/asyncio-queue.rst:170
245+ #: ../../library/asyncio-queue.rst:174
241246msgid ""
242247"A variant of :class:`Queue` that retrieves most recently added entries first"
243248" (last in, first out)."
244249msgstr ""
245250
246- #: ../../library/asyncio-queue.rst:175
251+ #: ../../library/asyncio-queue.rst:179
247252msgid "Exceptions"
248253msgstr ""
249254
250- #: ../../library/asyncio-queue.rst:179
255+ #: ../../library/asyncio-queue.rst:183
251256msgid ""
252257"This exception is raised when the :meth:`~Queue.get_nowait` method is called"
253258" on an empty queue."
254259msgstr ""
255260
256- #: ../../library/asyncio-queue.rst:185
261+ #: ../../library/asyncio-queue.rst:189
257262msgid ""
258263"Exception raised when the :meth:`~Queue.put_nowait` method is called on a "
259264"queue that has reached its *maxsize*."
260265msgstr ""
261266
262- #: ../../library/asyncio-queue.rst:191
267+ #: ../../library/asyncio-queue.rst:195
263268msgid ""
264- "Exception raised when :meth:`~Queue.put` or :meth:`~Queue.get` is called on "
265- "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."
266272msgstr ""
267273
268- #: ../../library/asyncio-queue.rst:198
274+ #: ../../library/asyncio-queue.rst:203
269275msgid "Examples"
270276msgstr ""
271277
272- #: ../../library/asyncio-queue.rst:202
278+ #: ../../library/asyncio-queue.rst:207
273279msgid ""
274280"Queues can be used to distribute workload between several concurrent tasks::"
275281msgstr ""
276282
277- #: ../../library/asyncio-queue.rst:205
283+ #: ../../library/asyncio-queue.rst:210
278284msgid ""
279285"import asyncio\n"
280286"import random\n"
0 commit comments