6
6
msgstr ""
7
7
"Project-Id-Version : Python 3.13\n "
8
8
"Report-Msgid-Bugs-To : \n "
9
- "POT-Creation-Date : 2024-10-11 00:13 +0000\n "
9
+ "POT-Creation-Date : 2025-05-06 00:15 +0000\n "
10
10
"PO-Revision-Date : 2018-05-23 16:11+0000\n "
11
11
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
12
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -2082,61 +2082,88 @@ msgid "Notes"
2082
2082
msgstr "註解"
2083
2083
2084
2084
#: ../../library/subprocess.rst:1597
2085
- msgid "Converting an argument sequence to a string on Windows "
2085
+ msgid "Timeout Behavior "
2086
2086
msgstr ""
2087
2087
2088
2088
#: ../../library/subprocess.rst:1599
2089
2089
msgid ""
2090
+ "When using the ``timeout`` parameter in functions like :func:`run`, :meth:"
2091
+ "`Popen.wait`, or :meth:`Popen.communicate`, users should be aware of the "
2092
+ "following behaviors:"
2093
+ msgstr ""
2094
+
2095
+ #: ../../library/subprocess.rst:1603
2096
+ msgid ""
2097
+ "**Process Creation Delay**: The initial process creation itself cannot be "
2098
+ "interrupted on many platform APIs. This means that even when specifying a "
2099
+ "timeout, you are not guaranteed to see a timeout exception until at least "
2100
+ "after however long process creation takes."
2101
+ msgstr ""
2102
+
2103
+ #: ../../library/subprocess.rst:1608
2104
+ msgid ""
2105
+ "**Extremely Small Timeout Values**: Setting very small timeout values (such "
2106
+ "as a few milliseconds) may result in almost immediate :exc:`TimeoutExpired` "
2107
+ "exceptions because process creation and system scheduling inherently require "
2108
+ "time."
2109
+ msgstr ""
2110
+
2111
+ #: ../../library/subprocess.rst:1615
2112
+ msgid "Converting an argument sequence to a string on Windows"
2113
+ msgstr ""
2114
+
2115
+ #: ../../library/subprocess.rst:1617
2116
+ msgid ""
2090
2117
"On Windows, an *args* sequence is converted to a string that can be parsed "
2091
2118
"using the following rules (which correspond to the rules used by the MS C "
2092
2119
"runtime):"
2093
2120
msgstr ""
2094
2121
2095
- #: ../../library/subprocess.rst:1603
2122
+ #: ../../library/subprocess.rst:1621
2096
2123
msgid ""
2097
2124
"Arguments are delimited by white space, which is either a space or a tab."
2098
2125
msgstr ""
2099
2126
2100
- #: ../../library/subprocess.rst:1606
2127
+ #: ../../library/subprocess.rst:1624
2101
2128
msgid ""
2102
2129
"A string surrounded by double quotation marks is interpreted as a single "
2103
2130
"argument, regardless of white space contained within. A quoted string can "
2104
2131
"be embedded in an argument."
2105
2132
msgstr ""
2106
2133
2107
- #: ../../library/subprocess.rst:1611
2134
+ #: ../../library/subprocess.rst:1629
2108
2135
msgid ""
2109
2136
"A double quotation mark preceded by a backslash is interpreted as a literal "
2110
2137
"double quotation mark."
2111
2138
msgstr ""
2112
2139
2113
- #: ../../library/subprocess.rst:1614
2140
+ #: ../../library/subprocess.rst:1632
2114
2141
msgid ""
2115
2142
"Backslashes are interpreted literally, unless they immediately precede a "
2116
2143
"double quotation mark."
2117
2144
msgstr ""
2118
2145
2119
- #: ../../library/subprocess.rst:1617
2146
+ #: ../../library/subprocess.rst:1635
2120
2147
msgid ""
2121
2148
"If backslashes immediately precede a double quotation mark, every pair of "
2122
2149
"backslashes is interpreted as a literal backslash. If the number of "
2123
2150
"backslashes is odd, the last backslash escapes the next double quotation "
2124
2151
"mark as described in rule 3."
2125
2152
msgstr ""
2126
2153
2127
- #: ../../library/subprocess.rst:1626
2154
+ #: ../../library/subprocess.rst:1644
2128
2155
msgid ":mod:`shlex`"
2129
2156
msgstr ":mod:`shlex`"
2130
2157
2131
- #: ../../library/subprocess.rst:1627
2158
+ #: ../../library/subprocess.rst:1645
2132
2159
msgid "Module which provides function to parse and escape command lines."
2133
2160
msgstr ""
2134
2161
2135
- #: ../../library/subprocess.rst:1634
2162
+ #: ../../library/subprocess.rst:1652
2136
2163
msgid "Disabling use of ``vfork()`` or ``posix_spawn()``"
2137
2164
msgstr "停用 ``vfork()`` 或 ``posix_spawn()``"
2138
2165
2139
- #: ../../library/subprocess.rst:1636
2166
+ #: ../../library/subprocess.rst:1654
2140
2167
msgid ""
2141
2168
"On Linux, :mod:`subprocess` defaults to using the ``vfork()`` system call "
2142
2169
"internally when it is safe to do so rather than ``fork()``. This greatly "
@@ -2145,7 +2172,7 @@ msgstr ""
2145
2172
"在 Linux 上,:mod:`subprocess` 在安全的情況下預設會在內部使用 ``vfork()`` 系"
2146
2173
"統呼叫,而不是 ``fork()``,這顯著地提高了性能。"
2147
2174
2148
- #: ../../library/subprocess.rst:1640
2175
+ #: ../../library/subprocess.rst:1658
2149
2176
msgid ""
2150
2177
"If you ever encounter a presumed highly unusual situation where you need to "
2151
2178
"prevent ``vfork()`` from being used by Python, you can set the :const:"
@@ -2154,11 +2181,11 @@ msgstr ""
2154
2181
"如果你遇到了一個推定為極異常的情況,需要防止 Python 使用 ``vfork()``,你可以"
2155
2182
"將 :const:`subprocess._USE_VFORK` 屬性設為 false 值。"
2156
2183
2157
- #: ../../library/subprocess.rst:1646
2184
+ #: ../../library/subprocess.rst:1664
2158
2185
msgid "subprocess._USE_VFORK = False # See CPython issue gh-NNNNNN."
2159
2186
msgstr "subprocess._USE_VFORK = False # 見 CPython 問題 gh-NNNNNN."
2160
2187
2161
- #: ../../library/subprocess.rst:1648
2188
+ #: ../../library/subprocess.rst:1666
2162
2189
msgid ""
2163
2190
"Setting this has no impact on use of ``posix_spawn()`` which could use "
2164
2191
"``vfork()`` internally within its libc implementation. There is a similar :"
@@ -2169,11 +2196,11 @@ msgstr ""
2169
2196
"``vfork()``。如果你需要封鎖該屬性的使用,則有一個類似的 :const:`subprocess."
2170
2197
"_USE_POSIX_SPAWN` 屬性。"
2171
2198
2172
- #: ../../library/subprocess.rst:1655
2199
+ #: ../../library/subprocess.rst:1673
2173
2200
msgid "subprocess._USE_POSIX_SPAWN = False # See CPython issue gh-NNNNNN."
2174
2201
msgstr "subprocess._USE_POSIX_SPAWN = False # 見 CPython 問題 gh-NNNNNN."
2175
2202
2176
- #: ../../library/subprocess.rst:1657
2203
+ #: ../../library/subprocess.rst:1675
2177
2204
msgid ""
2178
2205
"It is safe to set these to false on any Python version. They will have no "
2179
2206
"effect on older versions when unsupported. Do not assume the attributes are "
@@ -2184,7 +2211,7 @@ msgstr ""
2184
2211
"沒有影響。不要假設屬性可供讀取。儘管有它們的名稱,真實值並不表示將使用相應的"
2185
2212
"函式,而只是表示可能會使用。"
2186
2213
2187
- #: ../../library/subprocess.rst:1662
2214
+ #: ../../library/subprocess.rst:1680
2188
2215
msgid ""
2189
2216
"Please file issues any time you have to use these private knobs with a way "
2190
2217
"to reproduce the issue you were seeing. Link to that issue from a comment in "
@@ -2193,11 +2220,11 @@ msgstr ""
2193
2220
"每當你需要使用這些私有開關以重現你所看到的問題時,請隨時提出問題 (file "
2194
2221
"issues)。從程式碼中的註解連結到該問題。"
2195
2222
2196
- #: ../../library/subprocess.rst:1666
2223
+ #: ../../library/subprocess.rst:1684
2197
2224
msgid "``_USE_POSIX_SPAWN``"
2198
2225
msgstr "``_USE_POSIX_SPAWN``"
2199
2226
2200
- #: ../../library/subprocess.rst:1667
2227
+ #: ../../library/subprocess.rst:1685
2201
2228
msgid "``_USE_VFORK``"
2202
2229
msgstr "``_USE_VFORK``"
2203
2230
0 commit comments