8000 update file from the review · python/python-docs-zh-tw@b597173 · GitHub
[go: up one dir, main page]

Skip to content

Commit b597173

Browse files
committed
update file from the review
1 parent 1088bad commit b597173

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

library/queue.po

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version: Python 3.10\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2022-04-15 00:13+0000\n"
14-
"PO-Revision-Date: 2022-09-24 14:29+0800\n"
14+
"PO-Revision-Date: 2022-09-26 15:56+0800\n"
1515
"Last-Translator: Allen Wu <allen91.wu@gmail.com>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1717
"tw)\n"
@@ -99,9 +99,9 @@ msgid ""
9999
"until queue items are consumed. If *maxsize* is less than or equal to zero, "
100100
"the queue size is infinite."
101101
msgstr ""
102-
"`LIFO (last-in, first-out)` 佇列的建構子。*maxsize* 是一個整數,用於設置佇列"
103-
"中可放置的項目數的上限。一旦達到此大小,插入將被鎖定,到佇列中的項目被消耗。"
104-
"如果 *maxsize* 小於或等於零,則佇列大小為無限。"
102+
":abbr:`LIFO (last-in, first-out)` 佇列的建構子。*maxsize* 是一個整數,用於設"
103+
"置佇列中可放置的項目數的上限。一旦達到此大小,插入將被鎖定,到佇列中的項目被"
104+
"消耗。如果 *maxsize* 小於或等於零,則佇列大小為無限。"
105105

106106
#: ../../library/queue.rst:54
107107
msgid ""
@@ -267,17 +267,17 @@ msgid ""
267267
"threads. For each :meth:`get` used to fetch a task, a subsequent call to :"
268268
"meth:`task_done` tells the queue that the processing on the task is complete."
269269
msgstr ""
270-
"指示指示先前放入佇列的任務已完成。由佇列消費者執行緒使用。對於用來提取任務的"
271-
"每個 :meth:`get`,隨後呼叫 :meth:`task_done` 告訴佇列任務的處理已完成。"
270+
"表示先前放入佇列的任務已完成。由佇列消費者執行緒使用。對於用來提取任務的每"
271+
" :meth:`get`,隨後呼叫 :meth:`task_done` 告訴佇列任務的處理已完成。"
272272

273273
#: ../../library/queue.rst:173
274274
msgid ""
275275
"If a :meth:`join` is currently blocking, it will resume when all items have "
276276
"been processed (meaning that a :meth:`task_done` call was received for every "
277277
"item that had been :meth:`put` into the queue)."
278278
msgstr ""
279-
"如果目前 :meth:`join` 阻塞,則當所有項目都已處理完畢後,它將恢復(這意味著對"
280-
"於 :meth:`put` 已進入佇列的每個項目,都收到 :meth:`task_done` 的呼叫)。"
279+
"如果目前 :meth:`join` 阻塞,它將會在所有項目都已處理完畢後恢復(代表對於以 :"
280+
"meth:`put` 放進佇列的每個項目,都要收到 :meth:`task_done` 的呼叫)。"
281281

282282
#: ../../library/queue.rst:177
283283
msgid ""
@@ -340,9 +340,9 @@ msgid ""
340340
"The optional args *block* and *timeout* are ignored and only provided for "
341341
"compatibility with :meth:`Queue.put`."
342342
msgstr ""
343-
"將 *item* 放入佇列中。此 method 從不阻塞,並且都會成功(潛在的低階錯誤,像是"
344-
"分配記憶體失敗除外)。可選的 args *block* 和 *timeout* 將被忽略,並且僅用於"
345-
"與 :meth:`Queue.put` 相容。"
343+
"將 *item* 放入佇列中。此 method 從不阻塞,並且都會成功(除了潛在的低階錯誤,"
344+
"像是分配記憶體失敗)。可選的 args *block* 和 *timeout* 會被忽略,它們僅是為了"
345+
"與 :meth:`Queue.put` 相容才存在。"
346346

347347
#: ../../library/queue.rst:252
348348
msgid ""
@@ -384,6 +384,6 @@ msgid ""
384384
"`~collections.deque.popleft` operations that do not require locking and also "
385385
"support indexing."
386386
msgstr ""
387-
":class:`collections.deque` 是無界佇列的替代實作,具有快速原子 :meth:"
388-
"`~collections.deque.append` 和 :meth:`~collections.deque.popleft` 操作,這些"
389-
"操作不需要鎖定,並且還支持索引。"
387+
":class:`collections.deque` 是無界佇列的替代實作,有快速且具原子性 (atomic) "
388+
"的 :meth:`~collections.deque.append` 和 :meth:`~collections.deque.popleft` "
389+
"作,這些操作不需要鎖定,並且還支持索引。"

0 commit comments

Comments
 (0)
0