Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions c-api/list.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
# Translators:
# Nkeys Syu <[email protected]>, 2016
# Matt Wang <[email protected]>, 2023
# Yorkxe <[email protected]>, 2025
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-23 07:52+0800\n"
"PO-Revision-Date: 2023-08-24 00:55+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"PO-Revision-Date: 2025-11-25 22:16+0800\n"
"Last-Translator: Yorkxe <karta25768@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
Expand Down Expand Up @@ -98,6 +99,8 @@ msgid ""
"Like :c:func:`PyList_GetItemRef`, but returns a :term:`borrowed reference` "
"instead of a :term:`strong reference`."
msgstr ""
"與 :c:func:`PyList_GetItemRef` 類似,但回傳一個 :term:`borrowed reference` "
"而非一個 :term:`strong reference`。"

#: ../../c-api/list.rst:80
msgid "Similar to :c:func:`PyList_GetItem`, but without error checking."
Expand All @@ -116,8 +119,7 @@ msgstr ""
msgid ""
"This function \"steals\" a reference to *item* and discards a reference to "
"an item already in the list at the affected position."
msgstr ""
"此函式「竊取」對 *item* 的參照,並丟棄對串列中受影響位置上已存在項目的參照。"
msgstr "此函式「竊取」對 *item* 的參照,並丟棄對串列中受影響位置上已存在項目的參照。"

#: ../../c-api/list.rst:97
msgid ""
Expand All @@ -133,6 +135,9 @@ msgid ""
"in :ref:`debug mode <debug-build>` or :option:`with assertions <--with-"
"assertions>`."
msgstr ""
"如果 Python 是以 :ref:`debug mode <debug-build>` 或 "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這邊可以翻譯(加斜線的原因可以見此頁面

Suggested change
"如果 Python 是以 :ref:`debug mode <debug-build>` 或 "
"如果 Python 是以\\ :ref:`偵錯模式 <debug-build>`\\"

":option:`with assertions <--with-assertions>` 建置,則會進行作為"
"斷言(asserting)的邊界檢查。"

#: ../../c-api/list.rst:106
msgid ""
Expand Down Expand Up @@ -194,25 +199,32 @@ msgid ""
"``PyList_SetSlice(list, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, iterable)`` and "
"analogous to ``list.extend(iterable)`` or ``list += iterable``."
msgstr ""
"將 *iterable* 中的內容擴展至 *list*。這與 ``PyList_SetSlice(list, "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

首句「擴展」的受詞應該是 list

Suggested change
" *iterable* 中的內容擴展至 *list*。這與 ``PyList_SetSlice(list, "
" *iterable* 中的內容擴展 *list*。這與 ``PyList_SetSlice(list, "

"PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, iterable)`` 相同,類似於 "
"``list.extend(iterable)`` 或 ``list += iterable``。"

#: ../../c-api/list.rst:148
msgid ""
"Raise an exception and return ``-1`` if *list* is not a :class:`list` "
"object. Return 0 on success."
msgstr ""
"引發一個例外並回傳 ``-1`` 如果 *list* 不是一個 :class:`list` 物件。如果成功回"
"傳 0。"

#: ../../c-api/list.rst:156
msgid ""
"Remove all items from *list*. This is the same as ``PyList_SetSlice(list, "
"0, PY_SSIZE_T_MAX, NULL)`` and analogous to ``list.clear()`` or ``del "
"list[:]``."
msgstr ""
msgstr "移除 *list* 中的所有項目。這與 ``PyList_SetSlice(list, 0, PY_SSIZE_T_MAX, "
"NULL)`` 相同,類似於 ``list.clear()`` 或 ``del list[:]``。"

#: ../../c-api/list.rst:160
msgid ""
"Raise an exception and return ``-1`` if *list* is not a :class:`list` "
"object. Return 0 on success."
msgstr ""
msgstr "引發一個例外並回傳 ``-1`` 如果 *list* 不是一個 :class:`list` 物件。"
"如果成功回傳 0。"

#: ../../c-api/list.rst:168
msgid ""
Expand Down
Loading