@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.14\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-10-05 14:11 +0000\n "
14+ "POT-Creation-Date : 2025-10-09 14:15 +0000\n "
1515"PO-Revision-Date : 2025-09-16 00:00+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : German (https://app.transifex.com/python-doc/teams/5390/de/)\n "
@@ -120,22 +120,42 @@ msgstr ""
120120msgid "Return the number of items in the queue."
121121msgstr ""
122122
123+ msgid "Put a :class:`Queue` instance into a shutdown mode."
124+ msgstr ""
125+
126+ msgid ""
127+ "The queue can no longer grow. Future calls to :meth:`~Queue.put` raise :exc:"
128+ "`QueueShutDown`. Currently blocked callers of :meth:`~Queue.put` will be "
129+ "unblocked and will raise :exc:`QueueShutDown` in the formerly blocked thread."
130+ msgstr ""
131+
132+ msgid ""
133+ "If *immediate* is false (the default), the queue can be wound down normally "
134+ "with :meth:`~Queue.get` calls to extract tasks that have already been loaded."
135+ msgstr ""
136+
123137msgid ""
124- "Shut down the queue, making :meth:`~Queue.get` and :meth:`~Queue.put` raise : "
125- "exc:`QueueShutDown` ."
138+ "And if :meth:`~Queue.task_done` is called for each remaining task, a "
139+ "pending :meth:`~Queue.join` will be unblocked normally ."
126140msgstr ""
127141
128142msgid ""
129- "By default, :meth:`~Queue.get` on a shut down queue will only raise once the "
130- "queue is empty. Set *immediate* to true to make :meth:`~Queue.get` raise "
131- "immediately instead."
143+ "Once the queue is empty, future calls to :meth:`~Queue.get` will raise :exc:"
144+ "`QueueShutDown`."
132145msgstr ""
133146
134147msgid ""
135- "All blocked callers of :meth:`~Queue.put` and :meth:`~Queue.get` will be "
136- "unblocked. If *immediate* is true, a task will be marked as done for each "
137- "remaining item in the queue, which may unblock callers of :meth:`~Queue."
138- "join`."
148+ "If *immediate* is true, the queue is terminated immediately. The queue is "
149+ "drained to be completely empty. All callers of :meth:`~Queue.join` are "
150+ "unblocked regardless of the number of unfinished tasks. Blocked callers of :"
151+ "meth:`~Queue.get` are unblocked and will raise :exc:`QueueShutDown` because "
152+ "the queue is empty."
153+ msgstr ""
154+
155+ msgid ""
156+ "Use caution when using :meth:`~Queue.join` with *immediate* set to true. "
157+ "This unblocks the join even when no work has been done on the tasks, "
158+ "violating the usual invariant for joining a queue."
139159msgstr ""
140160
141161msgid "Indicate that a formerly enqueued work item is complete."
@@ -153,11 +173,6 @@ msgid ""
153173"item that had been :meth:`~Queue.put` into the queue)."
154174msgstr ""
155175
156- msgid ""
157- "``shutdown(immediate=True)`` calls :meth:`task_done` for each remaining item "
158- "in the queue."
159- msgstr ""
160-
161176msgid ""
162177"Raises :exc:`ValueError` if called more times than there were items placed "
163178"in the queue."
0 commit comments