Skip to content

Commit

Permalink
Sync with CPython 3.12 (#957)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Wang <mattwang44@gmail.com>
  • Loading branch information
pydoc-zh-tw[bot] and mattwang44 authored Sep 22, 2024
1 parent 7bdb519 commit cce68aa
Show file tree
Hide file tree
Showing 28 changed files with 1,144 additions and 1,129 deletions.
7 changes: 3 additions & 4 deletions c-api/code.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-22 00:03+0000\n"
"POT-Creation-Date: 2024-09-18 00:04+0000\n"
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -121,9 +121,8 @@ msgstr ""

#: ../../c-api/code.rst:93
msgid ""
"For efficiently iterating over the line numbers in a code object, use `the "
"API described in PEP 626 <https://peps.python.org/pep-0626/#out-of-process-"
"debuggers-and-profilers>`_."
"For efficiently iterating over the line numbers in a code object, use :pep:"
"`the API described in PEP 626 <0626#out-of-process-debuggers-and-profilers>`."
msgstr ""

#: ../../c-api/code.rst:98
Expand Down
21 changes: 14 additions & 7 deletions c-api/refcounting.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-01 22:24+0800\n"
"POT-Creation-Date: 2024-09-18 00:04+0000\n"
"PO-Revision-Date: 2023-08-06 14:19+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -106,14 +106,13 @@ msgstr ""
"該物件不能為 ``NULL``;如果你不確定它不是 ``NULL``,請使用 :c:func:"
"`Py_XINCREF`。"

#: ../../c-api/refcounting.rst:61 ../../c-api/refcounting.rst:127
#: ../../c-api/refcounting.rst:61
msgid ""
"Do not expect this function to actually modify *o* in any way. For at least "
"`some objects <https://peps.python.org/pep-0683/>`_, this function has no "
"effect."
"Do not expect this function to actually modify *o* in any way. For at least :"
"pep:`some objects <0683>`, this function has no effect."
msgstr ""
"不要期望此函式會以任何方式實際修改 *o*,至少對於\\ `某些物件 <https://peps."
"python.org/pep-0683/>`_\\ 來說,此函式沒有任何效果。"
"不要期望此函式會以任何方式實際修改 *o*,至少對於\\ :pep:`某些物件 <0683>`\\ "
"來說,此函式沒有任何效果。"

#: ../../c-api/refcounting.rst:71
msgid ""
Expand Down Expand Up @@ -216,6 +215,14 @@ msgstr ""
"該物件不能為 ``NULL``;如果你不確定它不是 ``NULL``,請改用 :c:func:"
"`Py_XDECREF`。"

#: ../../c-api/refcounting.rst:127
msgid ""
"Do not expect this function to actually modify *o* in any way. For at least :"
"pep:`some objects <683>`, this function has no effect."
msgstr ""
"不要期望此函式會以任何方式實際修改 *o*,至少對於\\ :pep:`某些物件 <683>`\\ 來"
"說,此函式沒有任何效果。"

#: ../../c-api/refcounting.rst:133
msgid ""
"The deallocation function can cause arbitrary Python code to be invoked (e."
Expand Down
22 changes: 11 additions & 11 deletions faq/design.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-03 11:11+0800\n"
"POT-Creation-Date: 2024-09-18 00:04+0000\n"
"PO-Revision-Date: 2023-08-31 11:34+0800\n"
"Last-Translator: Steven Hsu <hsuhaochun@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -649,13 +649,13 @@ msgstr "Python 可以被編譯成機器語言、C 語言或其他種語言嗎?
#: ../../faq/design.rst:330
msgid ""
"`Cython <https://cython.org/>`_ compiles a modified version of Python with "
"optional annotations into C extensions. `Nuitka <https://www.nuitka.net/>`_ "
"is an up-and-coming compiler of Python into C++ code, aiming to support the "
"optional annotations into C extensions. `Nuitka <https://nuitka.net/>`_ is "
"an up-and-coming compiler of Python into C++ code, aiming to support the "
"full Python language."
msgstr ""
"`Cython <https://cython.org/>`_ 可以編譯一個調整過有選擇性註解的 Python 版"
"本。 `Nuitka <https://www.nuitka.net/>`_ 是一個有潛力編譯器,可以把 Python "
"譯成 C++,他的目標是支援完整的 Python 語言。"
"本。`Nuitka <https://nuitka.net/>`_ 是一個有潛力編譯器,可以把 Python 編譯成 "
"C++,他的目標是支援完整的 Python 語言。"

#: ../../faq/design.rst:337
msgid "How does Python manage memory?"
Expand All @@ -680,14 +680,14 @@ msgstr ""
#: ../../faq/design.rst:347
msgid ""
"Other implementations (such as `Jython <https://www.jython.org>`_ or `PyPy "
"<https://www.pypy.org>`_), however, can rely on a different mechanism such "
"as a full-blown garbage collector. This difference can cause some subtle "
"porting problems if your Python code depends on the behavior of the "
"reference counting implementation."
"<https://pypy.org>`_), however, can rely on a different mechanism such as a "
"full-blown garbage collector. This difference can cause some subtle porting "
"problems if your Python code depends on the behavior of the reference "
"counting implementation."
msgstr ""
"然而,在其他實作(像是 `Jython <https://www.jython.org>`_ 或 `PyPy <https://"
"www.pypy.org>`_)中,會使用像是成熟的垃圾收集器等不同機制。如果你的 Python "
"式碼的表現取決於參照計次的實作,這個相異處會導致一些微小的移植問題。"
"pypy.org>`_)中,會使用像是成熟的垃圾收集器等不同機制。如果你的 Python 程式碼"
"的表現取決於參照計次的實作,這個相異處會導致一些微小的移植問題。"

#: ../../faq/design.rst:353
msgid ""
Expand Down
8 changes: 4 additions & 4 deletions faq/general.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-03 11:11+0800\n"
"POT-Creation-Date: 2024-09-18 00:04+0000\n"
"PO-Revision-Date: 2023-06-23 16:56+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -615,13 +615,13 @@ msgid ""
"The latest stable releases can always be found on the `Python download page "
"<https://www.python.org/downloads/>`_. There are two production-ready "
"versions of Python: 2.x and 3.x. The recommended version is 3.x, which is "
"supported by most widely used libraries. Although 2.x is still widely used, "
"`it is not maintained anymore <https://peps.python.org/pep-0373/>`_."
"supported by most widely used libraries. Although 2.x is still widely "
"used, :pep:`it is not maintained anymore <0373>`."
msgstr ""
"最新的穩定發布版本隨時都可以在 `Python 下載頁面 <https://www.python.org/"
"downloads/>`_\\ 上找到。Python 有兩個生產就緒 (production-ready) 的版本:2.x "
"和 3.x。推薦的版本是 3.x,此版本能被那些最為廣泛使用的函式庫所支援。雖然 2.x "
"仍然被廣泛使用,但\\ `它已不再被維護 <https://peps.python.org/pep-0373/>`_。"
"仍然被廣泛使用,但\\ :pep:`它已不再被維護 <0373>`。"

#: ../../faq/general.rst:318
msgid "How many people are using Python?"
Expand Down
Loading

0 comments on commit cce68aa

Please sign in to comment.