@@ -10,7 +10,7 @@ msgid ""
10
10
msgstr ""
11
11
"Project-Id-Version : Python 3.13\n "
12
12
"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 "
14
14
"PO-Revision-Date : 2022-09-27 00:12+0800\n "
15
15
"Last-Translator : Allen Wu <allen91.wu@gmail.com>\n "
16
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -250,7 +250,7 @@ msgstr ""
250
250
msgid "Equivalent to ``put(item, block=False)``."
251
251
msgstr "等效於 ``put(item, block=False)``。"
252
252
253
- #: ../../library/queue.rst:156 ../../library/queue.rst:313
253
+ #: ../../library/queue.rst:156 ../../library/queue.rst:314
254
254
msgid ""
255
255
"Remove and return an item from the queue. If optional args *block* is true "
256
256
"and *timeout* is ``None`` (the default), block if necessary until an item is "
@@ -284,7 +284,7 @@ msgid ""
284
284
"the queue has been shut down immediately."
285
285
msgstr ""
286
286
287
- #: ../../library/queue.rst:174 ../../library/queue.rst:323
287
+ #: ../../library/queue.rst:174 ../../library/queue.rst:324
288
288
msgid "Equivalent to ``get(False)``."
289
289
msgstr "等效於 ``get(False)``。"
290
290
@@ -412,36 +412,36 @@ msgstr ""
412
412
#: ../../library/queue.rst:258
413
413
msgid ""
414
414
"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."
419
419
msgstr ""
420
420
421
- #: ../../library/queue.rst:265
421
+ #: ../../library/queue.rst:266
422
422
msgid ""
423
423
"Use caution when using :meth:`~Queue.join` with *immediate* set to true. "
424
424
"This unblocks the join even when no work has been done on the tasks, "
425
425
"violating the usual invariant for joining a queue."
426
426
msgstr ""
427
427
428
- #: ../../library/queue.rst:273
428
+ #: ../../library/queue.rst:274
429
429
msgid "SimpleQueue Objects"
430
430
msgstr "SimpleQueue 物件"
431
431
432
- #: ../../library/queue.rst:275
432
+ #: ../../library/queue.rst:276
433
433
msgid ""
434
434
":class:`SimpleQueue` objects provide the public methods described below."
435
435
msgstr ":class:`SimpleQueue` 物件提供下面描述的公用 method。"
436
436
437
- #: ../../library/queue.rst:279
437
+ #: ../../library/queue.rst:280
438
438
msgid ""
439
439
"Return the approximate size of the queue. Note, qsize() > 0 doesn't "
440
440
"guarantee that a subsequent get() will not block."
441
441
msgstr ""
442
442
"傳回佇列的近似大小。注意,qsize() > 0 並不能保證後續的 get() 不會阻塞。"
443
443
444
- #: ../../library/queue.rst:285
444
+ #: ../../library/queue.rst:286
445
445
msgid ""
446
446
"Return ``True`` if the queue is empty, ``False`` otherwise. If empty() "
447
447
"returns ``False`` it doesn't guarantee that a subsequent call to get() will "
@@ -450,7 +450,7 @@ msgstr ""
450
450
"如果佇列為空,則回傳 ``True``,否則回傳 ``False``。如果 empty() 回傳 "
451
451
"``False``,則不保證後續呼叫 get() 不會阻塞。"
452
452
453
- #: ../../library/queue.rst:292
453
+ #: ../../library/queue.rst:293
454
454
msgid ""
455
455
"Put *item* into the queue. The method never blocks and always succeeds "
456
456
"(except for potential low-level errors such as failure to allocate memory). "
@@ -461,7 +461,7 @@ msgstr ""
461
461
"像是分配記憶體失敗)。可選的 args *block* 和 *timeout* 會被忽略,它們僅是為了"
462
462
"與 :meth:`Queue.put` 相容才存在。"
463
463
464
- #: ../../library/queue.rst:298
464
+ #: ../../library/queue.rst:299
465
465
msgid ""
466
466
"This method has a C implementation which is reentrant. That is, a ``put()`` "
467
467
"or ``get()`` call can be interrupted by another ``put()`` call in the same "
@@ -474,26 +474,26 @@ msgstr ""
474
474
"鎖 (deadlock) 或損壞佇列中的內部狀態。這使得它適合在解構子 (destructor) 中使"
475
475
"用,像是 ``__del__`` method 或 :mod:`weakref` 回呼函式 (callback)。"
476
476
477
- #: ../../library/queue.rst:307
477
+ #: ../../library/queue.rst:308
478
478
msgid ""
479
479
"Equivalent to ``put(item, block=False)``, provided for compatibility with :"
480
480
"meth:`Queue.put_nowait`."
481
481
msgstr ""
482
482
"等效於 ``put(item, block=False)``,用於與 :meth:`Queue.put_nowait` 相容。"
483
483
484
- #: ../../library/queue.rst:328
484
+ #: ../../library/queue.rst:329
485
485
msgid "Class :class:`multiprocessing.Queue`"
486
486
msgstr "Class :class:`multiprocessing.Queue`"
487
487
488
- #: ../../library/queue.rst:329
488
+ #: ../../library/queue.rst:330
489
489
msgid ""
490
490
"A queue class for use in a multi-processing (rather than multi-threading) "
491
491
"context."
492
492
msgstr ""
493
493
"用於多行程處理 (multi-processing)(而非多執行緒)情境 (context) 的佇列 "
494
494
"class。"
495
495
496
- #: ../../library/queue.rst:332
496
+ #: ../../library/queue.rst:333
497
497
msgid ""
498
498
":class:`collections.deque` is an alternative implementation of unbounded "
499
499
"queues with fast atomic :meth:`~collections.deque.append` and :meth:"
0 commit comments