Skip to content

Commit f58ca0b

Browse files
authored
Translate library/function.po few translate-1 (#883)
* fix library/function few translate-1 * few fix library/function translate-1 * few fix library/function translate-1 * fix library/function by review translate-1
1 parent 493f602 commit f58ca0b

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

library/functions.po

+25-9
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgstr ""
1010
"Project-Id-Version: Python 3.12\n"
1111
"Report-Msgid-Bugs-To: \n"
1212
"POT-Creation-Date: 2024-02-26 00:03+0000\n"
13-
"PO-Revision-Date: 2024-04-25 15:10+0800\n"
13+
"PO-Revision-Date: 2024-05-02 18:41+0800\n"
1414
"Last-Translator: KNChiu <[email protected]>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1616
"tw)\n"
@@ -410,10 +410,12 @@ msgid ""
410410
"Return an :term:`asynchronous iterator` for an :term:`asynchronous "
411411
"iterable`. Equivalent to calling ``x.__aiter__()``."
412412
msgstr ""
413+
"回傳 :term:`非同步疊代器 <asynchronous iterator>` 做為 :term:`非同步可疊代物"
414+
"件 <asynchronous iterable>`。相當於呼叫 x.__aiter__()。"
413415

414416
#: ../../library/functions.rst:70
415417
msgid "Note: Unlike :func:`iter`, :func:`aiter` has no 2-argument variant."
416-
msgstr ""
418+
msgstr "注意:與 :func:`iter` 不同,:func:`aiter` 沒有兩個引數的變體。"
417419

418420
#: ../../library/functions.rst:76
419421
msgid ""
@@ -430,11 +432,13 @@ msgid ""
430432
"When awaited, return the next item from the given :term:`asynchronous "
431433
"iterator`, or *default* if given and the iterator is exhausted."
432434
msgstr ""
435+
"當進入 await 時,從給定的 :term:`asynchronous iterator` 中回傳下一個項目"
436+
"(item),疊代完畢則回傳 *default* 。"
433437

434438
#: ../../library/functions.rst:92
435439
msgid ""
436440
"This is the async variant of the :func:`next` builtin, and behaves similarly."
437-
msgstr ""
441+
msgstr "這是內建函式 :func:`next` 的非同步版本,其行為類似於:"
438442

439443
#: ../../library/functions.rst:95
440444
msgid ""
@@ -443,6 +447,9 @@ msgid ""
443447
"iterator. If *default* is given, it is returned if the iterator is "
444448
"exhausted, otherwise :exc:`StopAsyncIteration` is raised."
445449
msgstr ""
450+
"呼叫 *async_iterator* 的 :meth:`~object.__anext__` 方法,回傳 :term:"
451+
"`awaitable`。等待返回疊代器的下一個值。如果指定 *default*,當疊代器結束時會返"
452+
"回該值,否則會引發 :exc:`StopAsyncIteration` 。"
446453

447454
#: ../../library/functions.rst:104
448455
msgid ""
@@ -505,7 +512,7 @@ msgstr ""
505512
#: ../../library/functions.rst:155 ../../library/functions.rst:710
506513
#: ../../library/functions.rst:934
507514
msgid "*x* is now a positional-only parameter."
508-
msgstr ""
515+
msgstr "*x* 現在為僅限位置參數。"
509516

510517
#: ../../library/functions.rst:160
511518
msgid ""
@@ -519,19 +526,28 @@ msgid ""
519526
"you to drop into the debugger of choice. If :func:`sys.breakpointhook` is "
520527
"not accessible, this function will raise :exc:`RuntimeError`."
521528
msgstr ""
529+
"這個函式將呼叫 :func:`sys.breakpointhook` 函式,並將 ``args`` 和 ``kws`` 傳遞"
530+
"給它。這將有效地讓你在特定的呼叫點進入除錯器。預設情況下,``sys."
531+
"breakpointhook()`` 呼叫 :func:`pdb.set_trace()` 不須帶任何引數。這樣的設計是"
532+
"為了方便使用者,讓他們不需要額外地導入 :mod:`pdb` 模組或輸入太多程式就可以進"
533+
"入除錯器。然而,可以將 :func:`sys.breakpointhook` 設置為其他函式,並且 :func:"
534+
"`breakpoint` 將自動呼叫該函式,讓你進入所選擇的除錯器。如果無法存取 :func:"
535+
"`sys.breakpointhook` 這個函式,則此函式將引發 :exc:`RuntimeError`。"
522536

523537
#: ../../library/functions.rst:172
524538
msgid ""
525539
"By default, the behavior of :func:`breakpoint` can be changed with the :"
526540
"envvar:`PYTHONBREAKPOINT` environment variable. See :func:`sys."
527541
"breakpointhook` for usage details."
528542
msgstr ""
543+
"預設情況下,:func:`breakpoint` 的行為可以通過 :envvar:`PYTHONBREAKPOINT` 環境"
544+
"變數來更改。有關使用詳情,請參考 :func:`sys.breakpointhook`。"
529545

530546
#: ../../library/functions.rst:176
531547
msgid ""
532548
"Note that this is not guaranteed if :func:`sys.breakpointhook` has been "
533549
"replaced."
534-
msgstr ""
550+
msgstr "請注意,如果 :func:`sys.breakpointhook` 被替換了,則無法保證此功能。"
535551

536552
#: ../../library/functions.rst:179
537553
msgid ""
@@ -1162,8 +1178,8 @@ msgid ""
11621178
"Raises an :ref:`auditing event <auditing>` ``exec`` with the code object as "
11631179
"the argument. Code compilation events may also be raised."
11641180
msgstr ""
1165-
"引發一個附帶程式碼物件為引數的\\ :ref:`稽核事件 <auditing>` ``exec``。也可能會"
1166-
"引發程式碼編譯事件。"
1181+
"引發一個附帶程式碼物件為引數的\\ :ref:`稽核事件 <auditing>` ``exec``。也可能"
1182+
"會引發程式碼編譯事件。"
11671183

11681184
#: ../../library/functions.rst:580
11691185
msgid ""
@@ -1465,8 +1481,8 @@ msgid ""
14651481
"For objects with custom :meth:`~object.__hash__` methods, note that :func:"
14661482
"`hash` truncates the return value based on the bit width of the host machine."
14671483
msgstr ""
1468-
"請注意,如果物件帶有自訂的 :meth:`~object.__hash__` 方法,:func:"
1469-
"`hash` 將根據運行機器的位元長度來截斷回傳值。"
1484+
"請注意,如果物件帶有自訂的 :meth:`~object.__hash__` 方法,:func:`hash` 將根據"
1485+
"運行機器的位元長度來截斷回傳值。"
14701486

14711487
#: ../../library/functions.rst:805
14721488
msgid ""

0 commit comments

Comments
 (0)