@@ -10,7 +10,7 @@ msgid ""
1010msgstr ""
1111"Project-Id-Version : Python 3.13\n "
1212"Report-Msgid-Bugs-To : \n "
13- "POT-Creation-Date : 2025-07-25 00:16 +0000\n "
13+ "POT-Creation-Date : 2025-07-26 00:17 +0000\n "
1414"PO-Revision-Date : 2022-09-27 00:12+0800\n "
1515"
Last-Translator :
Allen Wu <[email protected] >\n "
1616"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -250,7 +250,7 @@ msgstr ""
250250msgid "Equivalent to ``put(item, block=False)``."
251251msgstr "等效於 ``put(item, block=False)``。"
252252
253- #: ../../library/queue.rst:156 ../../library/queue.rst:313
253+ #: ../../library/queue.rst:156 ../../library/queue.rst:314
254254msgid ""
255255"Remove and return an item from the queue. If optional args *block* is true "
256256"and *timeout* is ``None`` (the default), block if necessary until an item is "
@@ -284,7 +284,7 @@ msgid ""
284284"the queue has been shut down immediately."
285285msgstr ""
286286
287- #: ../../library/queue.rst:174 ../../library/queue.rst:323
287+ #: ../../library/queue.rst:174 ../../library/queue.rst:324
288288msgid "Equivalent to ``get(False)``."
289289msgstr "等效於 ``get(False)``。"
290290
@@ -412,36 +412,36 @@ msgstr ""
412412#: ../../library/queue.rst:258
413413msgid ""
414414"If *immediate* is true, the queue is terminated immediately. The queue is "
415- "drained to be completely empty. All callers of :meth:`~Queue.join` are "
416- "unblocked regardless of the number of unfinished tasks. Blocked callers of :"
417- "meth:`~Queue.get ` are unblocked and will raise :exc:`ShutDown` because the "
418- "queue is empty."
415+ "drained to be completely empty and the count of unfinished tasks is reduced "
416+ "by the number of tasks drained. If unfinished tasks is zero, callers of :"
417+ "meth:`~Queue.join ` are unblocked. Also, blocked callers of :meth:`~Queue. "
418+ "get` are unblocked and will raise :exc:`ShutDown` because the queue is empty."
419419msgstr ""
420420
421- #: ../../library/queue.rst:265
421+ #: ../../library/queue.rst:266
422422msgid ""
423423"Use caution when using :meth:`~Queue.join` with *immediate* set to true. "
424424"This unblocks the join even when no work has been done on the tasks, "
425425"violating the usual invariant for joining a queue."
426426msgstr ""
427427
428- #: ../../library/queue.rst:273
428+ #: ../../library/queue.rst:274
429429msgid "SimpleQueue Objects"
430430msgstr "SimpleQueue 物件"
431431
432- #: ../../library/queue.rst:275
432+ #: ../../library/queue.rst:276
433433msgid ""
434434":class:`SimpleQueue` objects provide the public methods described below."
435435msgstr ":class:`SimpleQueue` 物件提供下面描述的公用 method。"
436436
437- #: ../../library/queue.rst:279
437+ #: ../../library/queue.rst:280
438438msgid ""
439439"Return the approximate size of the queue. Note, qsize() > 0 doesn't "
440440"guarantee that a subsequent get() will not block."
441441msgstr ""
442442"傳回佇列的近似大小。注意,qsize() > 0 並不能保證後續的 get() 不會阻塞。"
443443
444- #: ../../library/queue.rst:285
444+ #: ../../library/queue.rst:286
445445msgid ""
446446"Return ``True`` if the queue is empty, ``False`` otherwise. If empty() "
447447"returns ``False`` it doesn't guarantee that a subsequent call to get() will "
@@ -450,7 +450,7 @@ msgstr ""
450450"如果佇列為空,則回傳 ``True``,否則回傳 ``False``。如果 empty() 回傳 "
451451"``False``,則不保證後續呼叫 get() 不會阻塞。"
452452
453- #: ../../library/queue.rst:292
453+ #: ../../library/queue.rst:293
454454msgid ""
455455"Put *item* into the queue. The method never blocks and always succeeds "
456456"(except for potential low-level errors such as failure to allocate memory). "
@@ -461,7 +461,7 @@ msgstr ""
461461"像是分配記憶體失敗)。可選的 args *block* 和 *timeout* 會被忽略,它們僅是為了"
462462"與 :meth:`Queue.put` 相容才存在。"
463463
464- #: ../../library/queue.rst:298
464+ #: ../../library/queue.rst:299
465465msgid ""
466466"This method has a C implementation which is reentrant. That is, a ``put()`` "
467467"or ``get()`` call can be interrupted by another ``put()`` call in the same "
@@ -474,26 +474,26 @@ msgstr ""
474474"鎖 (deadlock) 或損壞佇列中的內部狀態。這使得它適合在解構子 (destructor) 中使"
475475"用,像是 ``__del__`` method 或 :mod:`weakref` 回呼函式 (callback)。"
476476
477- #: ../../library/queue.rst:307
477+ #: ../../library/queue.rst:308
478478msgid ""
479479"Equivalent to ``put(item, block=False)``, provided for compatibility with :"
480480"meth:`Queue.put_nowait`."
481481msgstr ""
482482"等效於 ``put(item, block=False)``,用於與 :meth:`Queue.put_nowait` 相容。"
483483
484- #: ../../library/queue.rst:328
484+ #: ../../library/queue.rst:329
485485msgid "Class :class:`multiprocessing.Queue`"
486486msgstr "Class :class:`multiprocessing.Queue`"
487487
488- #: ../../library/queue.rst:329
488+ #: ../../library/queue.rst:330
489489msgid ""
490490"A queue class for use in a multi-processing (rather than multi-threading) "
491491"context."
492492msgstr ""
493493"用於多行程處理 (multi-processing)(而非多執行緒)情境 (context) 的佇列 "
494494"class。"
495495
496- #: ../../library/queue.rst:332
496+ #: ../../library/queue.rst:333
497497msgid ""
498498":class:`collections.deque` is an alternative implementation of unbounded "
499499"queues with fast atomic :meth:`~collections.deque.append` and :meth:"
0 commit comments