Skip to content

Sync with CPython 3.13 #1040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 6, 2025
Merged
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
2 changes: 1 addition & 1 deletion c-api/arg.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-04-26 00:14+0000\n"
"POT-Creation-Date: 2025-05-06 05:40+0000\n"
"PO-Revision-Date: 2022-10-16 03:21+0800\n"
"Last-Translator: Adrian Liaw <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down
2 changes: 1 addition & 1 deletion library/operator.po
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ msgid ""
"is equivalent to using the :class:`bool` constructor."
msgstr ""
"如果 *obj* 為真值則回傳 :const:`True`,否則回傳 :const:`False`。這等價於使"
"用 :class:`bool` 建構器。"
"用 :class:`bool` 建構函式。"

#: ../../library/operator.rst:75
msgid "Return ``a is b``. Tests object identity."
Expand Down
15 changes: 8 additions & 7 deletions library/plistlib.po
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ msgstr ""

#: ../../library/plistlib.rst:27
msgid ""
"To write out and to parse a plist file, use the :func:`dump` and :func:"
"`load` functions."
"To write out and to parse a plist file, use the :func:`dump` "
"and :func:`load` functions."
msgstr ""

#: ../../library/plistlib.rst:30
msgid ""
"To work with plist data in bytes or string objects, use :func:`dumps` and :"
"func:`loads`."
"To work with plist data in bytes or string objects, use :func:`dumps` "
"and :func:`loads`."
msgstr ""

#: ../../library/plistlib.rst:33
Expand Down Expand Up @@ -85,7 +85,7 @@ msgstr ""

#: ../../library/plistlib.rst:53
msgid "This module defines the following functions:"
msgstr ""
msgstr "此模組定義了以下函式:"

#: ../../library/plistlib.rst:57
msgid ""
Expand Down Expand Up @@ -202,8 +202,9 @@ msgstr ""

#: ../../library/plistlib.rst:136
msgid ""
"Return *value* as a plist-formatted bytes object. See the documentation for :"
"func:`dump` for an explanation of the keyword arguments of this function."
"Return *value* as a plist-formatted bytes object. See the documentation "
"for :func:`dump` for an explanation of the keyword arguments of this "
"function."
msgstr ""

#: ../../library/plistlib.rst:143
Expand Down
65 changes: 46 additions & 19 deletions library/subprocess.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-11 00:13+0000\n"
"POT-Creation-Date: 2025-05-06 00:15+0000\n"
"PO-Revision-Date: 2018-05-23 16:11+0000\n"
"Last-Translator: Adrian Liaw <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -2082,61 +2082,88 @@ msgid "Notes"
msgstr "註解"

#: ../../library/subprocess.rst:1597
msgid "Converting an argument sequence to a string on Windows"
msgid "Timeout Behavior"
msgstr ""

#: ../../library/subprocess.rst:1599
msgid ""
"When using the ``timeout`` parameter in functions like :func:`run`, :meth:"
"`Popen.wait`, or :meth:`Popen.communicate`, users should be aware of the "
"following behaviors:"
msgstr ""

#: ../../library/subprocess.rst:1603
msgid ""
"**Process Creation Delay**: The initial process creation itself cannot be "
"interrupted on many platform APIs. This means that even when specifying a "
"timeout, you are not guaranteed to see a timeout exception until at least "
"after however long process creation takes."
msgstr ""

#: ../../library/subprocess.rst:1608
msgid ""
"**Extremely Small Timeout Values**: Setting very small timeout values (such "
"as a few milliseconds) may result in almost immediate :exc:`TimeoutExpired` "
"exceptions because process creation and system scheduling inherently require "
"time."
msgstr ""

#: ../../library/subprocess.rst:1615
msgid "Converting an argument sequence to a string on Windows"
msgstr ""

#: ../../library/subprocess.rst:1617
msgid ""
"On Windows, an *args* sequence is converted to a string that can be parsed "
"using the following rules (which correspond to the rules used by the MS C "
"runtime):"
msgstr ""

#: ../../library/subprocess.rst:1603
#: ../../library/subprocess.rst:1621
msgid ""
"Arguments are delimited by white space, which is either a space or a tab."
msgstr ""

#: ../../library/subprocess.rst:1606
#: ../../library/subprocess.rst:1624
msgid ""
"A string surrounded by double quotation marks is interpreted as a single "
"argument, regardless of white space contained within. A quoted string can "
"be embedded in an argument."
msgstr ""

#: ../../library/subprocess.rst:1611
#: ../../library/subprocess.rst:1629
msgid ""
"A double quotation mark preceded by a backslash is interpreted as a literal "
"double quotation mark."
msgstr ""

#: ../../library/subprocess.rst:1614
#: ../../library/subprocess.rst:1632
msgid ""
"Backslashes are interpreted literally, unless they immediately precede a "
"double quotation mark."
msgstr ""

#: ../../library/subprocess.rst:1617
#: ../../library/subprocess.rst:1635
msgid ""
"If backslashes immediately precede a double quotation mark, every pair of "
"backslashes is interpreted as a literal backslash. If the number of "
"backslashes is odd, the last backslash escapes the next double quotation "
"mark as described in rule 3."
msgstr ""

#: ../../library/subprocess.rst:1626
#: ../../library/subprocess.rst:1644
msgid ":mod:`shlex`"
msgstr ":mod:`shlex`"

#: ../../library/subprocess.rst:1627
#: ../../library/subprocess.rst:1645
msgid "Module which provides function to parse and escape command lines."
msgstr ""

#: ../../library/subprocess.rst:1634
#: ../../library/subprocess.rst:1652
msgid "Disabling use of ``vfork()`` or ``posix_spawn()``"
msgstr "停用 ``vfork()`` 或 ``posix_spawn()``"

#: ../../library/subprocess.rst:1636
#: ../../library/subprocess.rst:1654
msgid ""
"On Linux, :mod:`subprocess` defaults to using the ``vfork()`` system call "
"internally when it is safe to do so rather than ``fork()``. This greatly "
Expand All @@ -2145,7 +2172,7 @@ msgstr ""
"在 Linux 上,:mod:`subprocess` 在安全的情況下預設會在內部使用 ``vfork()`` 系"
"統呼叫,而不是 ``fork()``,這顯著地提高了性能。"

#: ../../library/subprocess.rst:1640
#: ../../library/subprocess.rst:1658
msgid ""
"If you ever encounter a presumed highly unusual situation where you need to "
"prevent ``vfork()`` from being used by Python, you can set the :const:"
Expand All @@ -2154,11 +2181,11 @@ msgstr ""
"如果你遇到了一個推定為極異常的情況,需要防止 Python 使用 ``vfork()``,你可以"
"將 :const:`subprocess._USE_VFORK` 屬性設為 false 值。"

#: ../../library/subprocess.rst:1646
#: ../../library/subprocess.rst:1664
msgid "subprocess._USE_VFORK = False # See CPython issue gh-NNNNNN."
msgstr "subprocess._USE_VFORK = False # 見 CPython 問題 gh-NNNNNN."

#: ../../library/subprocess.rst:1648
#: ../../library/subprocess.rst:1666
msgid ""
"Setting this has no impact on use of ``posix_spawn()`` which could use "
"``vfork()`` internally within its libc implementation. There is a similar :"
Expand All @@ -2169,11 +2196,11 @@ msgstr ""
"``vfork()``。如果你需要封鎖該屬性的使用,則有一個類似的 :const:`subprocess."
"_USE_POSIX_SPAWN` 屬性。"

#: ../../library/subprocess.rst:1655
#: ../../library/subprocess.rst:1673
msgid "subprocess._USE_POSIX_SPAWN = False # See CPython issue gh-NNNNNN."
msgstr "subprocess._USE_POSIX_SPAWN = False # 見 CPython 問題 gh-NNNNNN."

#: ../../library/subprocess.rst:1657
#: ../../library/subprocess.rst:1675
msgid ""
"It is safe to set these to false on any Python version. They will have no "
"effect on older versions when unsupported. Do not assume the attributes are "
Expand All @@ -2184,7 +2211,7 @@ msgstr ""
"沒有影響。不要假設屬性可供讀取。儘管有它們的名稱,真實值並不表示將使用相應的"
"函式,而只是表示可能會使用。"

#: ../../library/subprocess.rst:1662
#: ../../library/subprocess.rst:1680
msgid ""
"Please file issues any time you have to use these private knobs with a way "
"to reproduce the issue you were seeing. Link to that issue from a comment in "
Expand All @@ -2193,11 +2220,11 @@ msgstr ""
"每當你需要使用這些私有開關以重現你所看到的問題時,請隨時提出問題 (file "
"issues)。從程式碼中的註解連結到該問題。"

#: ../../library/subprocess.rst:1666
#: ../../library/subprocess.rst:1684
msgid "``_USE_POSIX_SPAWN``"
msgstr "``_USE_POSIX_SPAWN``"

#: ../../library/subprocess.rst:1667
#: ../../library/subprocess.rst:1685
msgid "``_USE_VFORK``"
msgstr "``_USE_VFORK``"

Expand Down
Loading