Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit46fe79f

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.12 (#780)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>Co-authored-by: Matt Wang <mattwang44@gmail.com>
1 parenta4bf1c8 commit46fe79f

File tree

97 files changed

+8071
-7669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+8071
-7669
lines changed

‎.scripts/poetry.lock

Lines changed: 84 additions & 99 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎c-api/conversion.po

Lines changed: 61 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2001-2023, Python Software Foundation
1+
# Copyright (C) 2001-2024, Python Software Foundation
22
# This file is distributed under the same license as the Python package.
33
#
44
# Translators:
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version:Python 3.12\n"
1111
"Report-Msgid-Bugs-To:\n"
12-
"POT-Creation-Date:2023-07-29 00:03+0000\n"
12+
"POT-Creation-Date:2024-01-27 00:03+0000\n"
1313
"PO-Revision-Date:2023-12-11 18:26+0000\n"
1414
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -112,6 +112,51 @@ msgstr "以下函式提供與區域設定無關 (locale-independent) 的字串
112112

113113
#:../../c-api/conversion.rst:53
114114
msgid""
115+
"Convert the initial part of the string in ``str`` to an :c:expr:`unsigned "
116+
"long` value according to the given ``base``, which must be between ``2`` and "
117+
"``36`` inclusive, or be the special value ``0``."
118+
msgstr""
119+
120+
#:../../c-api/conversion.rst:57
121+
msgid""
122+
"Leading white space and case of characters are ignored. If ``base`` is zero "
123+
"it looks for a leading ``0b``, ``0o`` or ``0x`` to tell which base. If "
124+
"these are absent it defaults to ``10``. Base must be 0 or between 2 and 36 "
125+
"(inclusive). If ``ptr`` is non-``NULL`` it will contain a pointer to the "
126+
"end of the scan."
127+
msgstr""
128+
129+
#:../../c-api/conversion.rst:63
130+
msgid""
131+
"If the converted value falls out of range of corresponding return type, "
132+
"range error occurs (:c:data:`errno` is set to :c:macro:`!ERANGE`) and :c:"
133+
"macro:`!ULONG_MAX` is returned. If no conversion can be performed, ``0`` is "
134+
"returned."
135+
msgstr""
136+
137+
#:../../c-api/conversion.rst:68
138+
msgid"See also the Unix man page :manpage:`strtoul(3)`."
139+
msgstr"也請見 Unix 手冊頁面 :manpage:`strtoul(3)`。"
140+
141+
#:../../c-api/conversion.rst:75
142+
msgid""
143+
"Convert the initial part of the string in ``str`` to an :c:expr:`long` value "
144+
"according to the given ``base``, which must be between ``2`` and ``36`` "
145+
"inclusive, or be the special value ``0``."
146+
msgstr""
147+
148+
#:../../c-api/conversion.rst:79
149+
msgid""
150+
"Same as :c:func:`PyOS_strtoul`, but return a :c:expr:`long` value instead "
151+
"and :c:macro:`LONG_MAX` on overflows."
152+
msgstr""
153+
154+
#:../../c-api/conversion.rst:82
155+
msgid"See also the Unix man page :manpage:`strtol(3)`."
156+
msgstr"也請見 Unix 手冊頁面 :manpage:`strtol(3)`。"
157+
158+
#:../../c-api/conversion.rst:89
159+
msgid""
115160
"Convert a string ``s`` to a :c:expr:`double`, raising a Python exception on "
116161
"failure. The set of accepted strings corresponds to the set of strings "
117162
"accepted by Python's :func:`float` constructor, except that ``s`` must not "
@@ -122,7 +167,7 @@ msgstr ""
122167
"對應於 Python 的 :func:`float` 建構函式接受的字串集合,但 ``s`` 不得有前導或"
123168
"尾隨的空格。轉換與目前區域設定無關。"
124169

125-
#:../../c-api/conversion.rst:59
170+
#:../../c-api/conversion.rst:95
126171
msgid""
127172
"If ``endptr`` is ``NULL``, convert the whole string. Raise :exc:"
128173
"`ValueError` and return ``-1.0`` if the string is not a valid representation "
@@ -131,7 +176,7 @@ msgstr ""
131176
"如果 ``endptr`` 為 ``NULL``,則轉換整個字串。如果字串不是浮點數的有效表示,則"
132177
"引發 :exc:`ValueError` 並回傳 ``-1.0``。"
133178

134-
#:../../c-api/conversion.rst:63
179+
#:../../c-api/conversion.rst:99
135180
msgid""
136181
"If endptr is not ``NULL``, convert as much of the string as possible and set "
137182
"``*endptr`` to point to the first unconverted character. If no initial "
@@ -143,7 +188,7 @@ msgstr ""
143188
"個未轉換的字元。如果字串的初始片段都不是浮點數的有效表示,則設定 ``*endptr`` "
144189
"指向字串的開頭,引發 ValueError 並回傳 ``-1.0``。"
145190

146-
#:../../c-api/conversion.rst:70
191+
#:../../c-api/conversion.rst:106
147192
msgid""
148193
"If ``s`` represents a value that is too large to store in a float (for "
149194
"example, ``\"1e500\"`` is such a string on many platforms) then if "
@@ -160,23 +205,23 @@ msgstr ""
160205
"``-1.0``。在這兩種情況下,將 ``*endptr`` 設定為指向轉換後的值之後的第一個字"
161206
"元。"
162207

163-
#:../../c-api/conversion.rst:78
208+
#:../../c-api/conversion.rst:114
164209
msgid""
165210
"If any other error occurs during the conversion (for example an out-of-"
166211
"memory error), set the appropriate Python exception and return ``-1.0``."
167212
msgstr""
168213
"如果轉換期間發生任何其他錯誤(例如記憶體不足的錯誤),請設定適當的 Python 例"
169214
"外並回傳 ``-1.0``。"
170215

171-
#:../../c-api/conversion.rst:87
216+
#:../../c-api/conversion.rst:123
172217
msgid""
173218
"Convert a :c:expr:`double` *val* to a string using supplied *format_code*, "
174219
"*precision*, and *flags*."
175220
msgstr""
176221
"使用提供的 *format_code*、*precision* 和 *flags* 將 :c:expr:`double` *val* 轉"
177222
"換為字串。"
178223

179-
#:../../c-api/conversion.rst:90
224+
#:../../c-api/conversion.rst:126
180225
msgid""
181226
"*format_code* must be one of ``'e'``, ``'E'``, ``'f'``, ``'F'``, ``'g'``, "
182227
"``'G'`` or ``'r'``. For ``'r'``, the supplied *precision* must be 0 and is "
@@ -186,36 +231,36 @@ msgstr ""
186231
"``'r'`` 其中之一。對於 ``'r'``,提供的 *precision* 必須為 0 並會被忽略。"
187232
"``'r'`` 格式碼指定標準 :func:`repr` 格式。"
188233

189-
#:../../c-api/conversion.rst:95
234+
#:../../c-api/conversion.rst:131
190235
msgid""
191236
"*flags* can be zero or more of the values ``Py_DTSF_SIGN``, "
192237
"``Py_DTSF_ADD_DOT_0``, or ``Py_DTSF_ALT``, or-ed together:"
193238
msgstr""
194239
"*flags* 可以是零個或多個值 ``Py_DTSF_SIGN``、``Py_DTSF_ADD_DOT_0`` 或 "
195240
"``Py_DTSF_ALT``,會被聯集在一起:"
196241

197-
#:../../c-api/conversion.rst:98
242+
#:../../c-api/conversion.rst:134
198243
msgid""
199244
"``Py_DTSF_SIGN`` means to always precede the returned string with a sign "
200245
"character, even if *val* is non-negative."
201246
msgstr""
202247
"``Py_DTSF_SIGN`` 代表總是在回傳的字串前面加上符號字元,即使 *val* 非負數。"
203248

204-
#:../../c-api/conversion.rst:101
249+
#:../../c-api/conversion.rst:137
205250
msgid""
206251
"``Py_DTSF_ADD_DOT_0`` means to ensure that the returned string will not look "
207252
"like an integer."
208253
msgstr"``Py_DTSF_ADD_DOT_0`` 代表確保回傳的字串看起來不會像整數。"
209254

210-
#:../../c-api/conversion.rst:104
255+
#:../../c-api/conversion.rst:140
211256
msgid""
212257
"``Py_DTSF_ALT`` means to apply\"alternate\" formatting rules. See the "
213258
"documentation for the :c:func:`PyOS_snprintf` ``'#'`` specifier for details."
214259
msgstr""
215260
"``Py_DTSF_ALT`` 代表要套用「備用的 (alternate)」格式化規則。有關詳細資訊,請"
216261
"參閱 :c:func:`PyOS_snprintf` ``'#'`` 的文件。"
217262

218-
#:../../c-api/conversion.rst:108
263+
#:../../c-api/conversion.rst:144
219264
msgid""
220265
"If *ptype* is non-``NULL``, then the value it points to will be set to one "
221266
"of ``Py_DTST_FINITE``, ``Py_DTST_INFINITE``, or ``Py_DTST_NAN``, signifying "
@@ -226,7 +271,7 @@ msgstr ""
226271
"``Py_DTST_INFINITE`` 或 ``Py_DTST_NAN`` 其中之一,分別代表 *val* 是有限數、無"
227272
"限數或非數。"
228273

229-
#:../../c-api/conversion.rst:112
274+
#:../../c-api/conversion.rst:148
230275
msgid""
231276
"The return value is a pointer to *buffer* with the converted string or "
232277
"``NULL`` if the conversion failed. The caller is responsible for freeing the "
@@ -235,15 +280,15 @@ msgstr ""
235280
"回傳值是指向 *buffer* 的指標,其中包含轉換後的字串,如果轉換失敗則回傳 "
236281
"``NULL``。呼叫者負責透過呼叫 :c:func:`PyMem_Free` 來釋放回傳的字串。"
237282

238-
#:../../c-api/conversion.rst:121
283+
#:../../c-api/conversion.rst:157
239284
msgid""
240285
"Case insensitive comparison of strings. The function works almost "
241286
"identically to :c:func:`!strcmp` except that it ignores the case."
242287
msgstr""
243288
"不區分大小寫的字串比較。函式的作用方式幾乎與 :c:func:`!strcmp` 相同,只是它忽"
244289
"略大小寫。"
245290

246-
#:../../c-api/conversion.rst:127
291+
#:../../c-api/conversion.rst:163
247292
msgid""
248293
"Case insensitive comparison of strings. The function works almost "
249294
"identically to :c:func:`!strncmp` except that it ignores the case."

‎c-api/exceptions.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.12\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2023-12-14 00:03+0000\n"
11+
"POT-Creation-Date:2024-01-01 00:03+0000\n"
1212
"PO-Revision-Date:2018-05-23 14:05+0000\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -454,7 +454,7 @@ msgstr ""
454454
#:../../c-api/exceptions.rst:429
455455
msgid""
456456
"Return the exception currently being raised, clearing the error indicator at "
457-
"the same time."
457+
"the same time. Return ``NULL`` if the error indicator is not set."
458458
msgstr""
459459

460460
#:../../c-api/exceptions.rst:432

‎c-api/memory.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.12\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2023-10-17 00:03+0000\n"
11+
"POT-Creation-Date:2024-01-22 00:03+0000\n"
1212
"PO-Revision-Date:2018-05-23 14:06+0000\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -329,16 +329,16 @@ msgstr ""
329329
#:../../c-api/memory.rst:269
330330
msgid""
331331
"Same as :c:func:`PyMem_Malloc`, but allocates ``(n * sizeof(TYPE))`` bytes "
332-
"of memory. Returns a pointer cast to:c:expr:`TYPE*`. The memory will not "
333-
"havebeen initialized in any way."
332+
"of memory. Returns a pointer cast to``TYPE*``. The memory will not have "
333+
"been initialized in any way."
334334
msgstr""
335335

336336
#:../../c-api/memory.rst:276
337337
msgid""
338338
"Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n * "
339-
"sizeof(TYPE))`` bytes. Returns a pointer cast to:c:expr:`TYPE*`. On "
340-
"return, *p*will be a pointer to the new memory area, or ``NULL`` in the "
341-
"event offailure."
339+
"sizeof(TYPE))`` bytes. Returns a pointer cast to``TYPE*``. On return, *p* "
340+
"will be a pointer to the new memory area, or ``NULL`` in the event of "
341+
"failure."
342342
msgstr""
343343

344344
#:../../c-api/memory.rst:281

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp