Skip to content
Draft
Show file tree
Hide file tree
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
130 changes: 126 additions & 4 deletions c-api/dict.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-13 23:16+0000\n"
"POT-Creation-Date: 2025-11-18 00:15+0000\n"
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
"Last-Translator: Liang-Bo Wang <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -526,8 +526,8 @@ msgid ""
"currently equivalent to :c:expr:`PyDictKeys_Check(op) || "
"PyDictItems_Check(op)`. This function always succeeds."
msgstr ""
"若 *op* 是一個字典中集合的視圖則會回傳 true。這目前等同於 :c:expr:`PyDictKeys_Check(op) || "
"PyDictItems_Check(op)`。此函式每次都會執行成功。"
"若 *op* 是一個字典中集合的視圖則會回傳 true。這目前等同於 :c:expr:"
"`PyDictKeys_Check(op) || PyDictItems_Check(op)`。此函式每次都會執行成功。"

#: ../../c-api/dict.rst:448
msgid ""
Expand Down Expand Up @@ -563,7 +563,129 @@ msgstr ""
msgid ""
"Return true if *op* is an instance of a dictionary items view. This function "
"always succeeds."
msgstr "若 *op* 是一個字典項目視圖的實例則會回傳 true。此函式每次都會執行成功。"
msgstr ""
"若 *op* 是一個字典項目視圖的實例則會回傳 true。此函式每次都會執行成功。"

#: ../../c-api/dict.rst:483
#, fuzzy
msgid "Ordered Dictionaries"
msgstr "dictionary(字典)"

#: ../../c-api/dict.rst:485
msgid ""
"Python's C API provides interface for :class:`collections.OrderedDict` from "
"C. Since Python 3.7, dictionaries are ordered by default, so there is "
"usually little need for these functions; prefer ``PyDict*`` where possible."
msgstr ""

#: ../../c-api/dict.rst:492
#, fuzzy
msgid ""
"Type object for ordered dictionaries. This is the same object as :class:"
"`collections.OrderedDict` in the Python layer."
msgstr ""
":c:type:`PyTypeObject` 實例代表一個 Python 字典型別。此與 Python 層中的 :"
"class:`dict` 為同一個物件。"

#: ../../c-api/dict.rst:498
#, fuzzy
msgid ""
"Return true if *od* is an ordered dictionary object or an instance of a "
"subtype of the :class:`~collections.OrderedDict` type. This function always "
"succeeds."
msgstr ""
"若 *p* 是一個字典物件或字典的子型別實例則會回傳 true。此函式每次都會執行成"
"功。"

#: ../../c-api/dict.rst:505
#, fuzzy
msgid ""
"Return true if *od* is an ordered dictionary object, but not an instance of "
"a subtype of the :class:`~collections.OrderedDict` type. This function "
"always succeeds."
msgstr ""
"若 *p* 是一個字典物件但並不是一個字典子型別的實例,則回傳 true。此函式每次都"
"會執行成功。"

#: ../../c-api/dict.rst:512
msgid "Analogous to :c:type:`PyDictKeys_Type` for ordered dictionaries."
msgstr ""

#: ../../c-api/dict.rst:517
msgid "Analogous to :c:type:`PyDictValues_Type` for ordered dictionaries."
msgstr ""

#: ../../c-api/dict.rst:522
msgid "Analogous to :c:type:`PyDictItems_Type` for ordered dictionaries."
msgstr ""

#: ../../c-api/dict.rst:527
#, fuzzy
msgid "Return a new empty ordered dictionary, or ``NULL`` on failure."
msgstr "回傳一個新的空字典,或在失敗時回傳 ``NULL``。"

#: ../../c-api/dict.rst:529
msgid "This is analogous to :c:func:`PyDict_New`."
msgstr ""

#: ../../c-api/dict.rst:534
msgid ""
"Insert *value* into the ordered dictionary *od* with a key of *key*. Return "
"``0`` on success or ``-1`` with an exception set on failure."
msgstr ""

#: ../../c-api/dict.rst:537
#, fuzzy
msgid "This is analogous to :c:func:`PyDict_SetItem`."
msgstr "另見 :c:func:`PyObject_GetItem` 函式。"

#: ../../c-api/dict.rst:542
msgid ""
"Remove the entry in the ordered dictionary *od* with key *key*. Return ``0`` "
"on success or ``-1`` with an exception set on failure."
msgstr ""

#: ../../c-api/dict.rst:545
msgid "This is analogous to :c:func:`PyDict_DelItem`."
msgstr ""

#: ../../c-api/dict.rst:548
msgid "These are :term:`soft deprecated` aliases to ``PyDict`` APIs:"
msgstr ""

#: ../../c-api/dict.rst:555
msgid "``PyODict``"
msgstr ""

#: ../../c-api/dict.rst:556
msgid "``PyDict``"
msgstr ""

#: ../../c-api/dict.rst:558
#, fuzzy
msgid ":c:func:`PyDict_GetItem`"
msgstr "另見 :c:func:`PyObject_GetItem` 函式。"

#: ../../c-api/dict.rst:560
msgid ":c:func:`PyDict_GetItemWithError`"
msgstr ""

#: ../../c-api/dict.rst:562
#, fuzzy
msgid ":c:func:`PyDict_GetItemString`"
msgstr "另見 :c:func:`PyObject_GetItem` 函式。"

#: ../../c-api/dict.rst:564
msgid ":c:func:`PyDict_Contains`"
msgstr ""

#: ../../c-api/dict.rst:566
msgid ":c:func:`PyDict_Size`"
msgstr ""

#: ../../c-api/dict.rst:568
msgid ":c:func:`PyDict_GET_SIZE`"
msgstr ""

#: ../../c-api/dict.rst:8
msgid "object"
Expand Down
Loading