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

Commit509bb5d

Browse files
sync with cpython e6dfa9d6
1 parent5d9f25b commit509bb5d

File tree

3 files changed

+242
-222
lines changed

3 files changed

+242
-222
lines changed

‎c-api/arg.po

Lines changed: 75 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version:Python 3.13\n"
88
"Report-Msgid-Bugs-To:\n"
9-
"POT-Creation-Date:2025-01-07 00:14+0000\n"
9+
"POT-Creation-Date:2025-03-03 00:15+0000\n"
1010
"PO-Revision-Date:2022-10-16 03:21+0800\n"
1111
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -24,18 +24,18 @@ msgstr "剖析引數與建置數值"
2424

2525
#:../../c-api/arg.rst:8
2626
msgid""
27-
"These functions are useful when creating your ownextensions functions and "
28-
"methods. Additional information and examples are available "
29-
"in :ref:`extending-index`."
27+
"These functions are useful when creating your ownextension functions and "
28+
"methods. Additional information and examples are availablein :ref:"
29+
"`extending-index`."
3030
msgstr""
3131

3232
#:../../c-api/arg.rst:12
3333
msgid""
34-
"The first three of these functions "
35-
"described, :c:func:`PyArg_ParseTuple`, :c:func:`PyArg_ParseTupleAndKeywords`, "
36-
"and :c:func:`PyArg_Parse`, all use*format strings* which are used to tell "
37-
"the function about the expectedarguments. The format strings use the same "
38-
"syntax for each of thesefunctions."
34+
"The first three of these functionsdescribed, :c:func:`PyArg_ParseTuple`, :c:"
35+
"func:`PyArg_ParseTupleAndKeywords`,and:c:func:`PyArg_Parse`, all use "
36+
"*format strings* which are used to tell the function about the expected "
37+
"arguments. The format strings use the same syntax for each of these "
38+
"functions."
3939
msgstr""
4040

4141
#:../../c-api/arg.rst:19
@@ -108,10 +108,10 @@ msgstr ""
108108

109109
#:../../c-api/arg.rst:70
110110
msgid""
111-
"To ensure that the underlying buffer may be safely borrowed, the "
112-
"object's :c:member:`PyBufferProcs.bf_releasebuffer` field must be ``NULL``. "
113-
"Thisdisallows common mutable objects such as :class:`bytearray`, but also "
114-
"someread-only objects such as :class:`memoryview` of :class:`bytes`."
111+
"To ensure that the underlying buffer may be safely borrowed, theobject's :c:"
112+
"member:`PyBufferProcs.bf_releasebuffer` field must be ``NULL``. This "
113+
"disallows common mutable objects such as :class:`bytearray`, but also some "
114+
"read-only objects such as :class:`memoryview` of :class:`bytes`."
115115
msgstr""
116116

117117
#:../../c-api/arg.rst:76
@@ -139,8 +139,8 @@ msgstr ""
139139
msgid""
140140
"This format does not accept :term:`bytes-like objects <bytes-like object>`. "
141141
"If you want to accept filesystem paths and convert them to C character "
142-
"strings, it is preferable to use the ``O&`` format "
143-
"with :c:func:`PyUnicode_FSConverter` as *converter*."
142+
"strings, it is preferable to use the ``O&`` formatwith :c:func:"
143+
"`PyUnicode_FSConverter` as *converter*."
144144
msgstr""
145145

146146
#:../../c-api/arg.rst:96
@@ -163,11 +163,11 @@ msgstr ""
163163

164164
#:../../c-api/arg.rst:106
165165
msgid""
166-
"``s#`` (:class:`str`, read-only :term:`bytes-like object`) [const char "
167-
"\\*, :c:type:`Py_ssize_t`]"
166+
"``s#`` (:class:`str`, read-only :term:`bytes-like object`) [const char\\*, :"
167+
"c:type:`Py_ssize_t`]"
168168
msgstr""
169-
"``s#`` (:class:`str`、唯讀的 :term:`bytes-like object`) [const char "
170-
"\\*, :c:type:`Py_ssize_t`]"
169+
"``s#`` (:class:`str`、唯讀的 :term:`bytes-like object`) [const char\\*, :c:"
170+
"type:`Py_ssize_t`]"
171171

172172
#:../../c-api/arg.rst:107
173173
msgid""
@@ -244,11 +244,11 @@ msgstr ""
244244

245245
#:../../c-api/arg.rst:141
246246
msgid""
247-
"``y#`` (read-only :term:`bytes-like object`) [const char "
248-
"\\*, :c:type:`Py_ssize_t`]"
247+
"``y#`` (read-only :term:`bytes-like object`) [const char\\*, :c:type:"
248+
"`Py_ssize_t`]"
249249
msgstr""
250-
"``y#`` (唯讀的 :term:`bytes-like object`) [const char "
251-
"\\*, :c:type:`Py_ssize_t`]"
250+
"``y#`` (唯讀的 :term:`bytes-like object`) [const char\\*, :c:type:"
251+
"`Py_ssize_t`]"
252252

253253
#:../../c-api/arg.rst:142
254254
msgid""
@@ -274,9 +274,9 @@ msgstr "``Y`` (:class:`bytearray`) [PyByteArrayObject \\*]"
274274
#:../../c-api/arg.rst:151
275275
msgid""
276276
"Requires that the Python object is a :class:`bytearray` object, without "
277-
"attempting any conversion. Raises :exc:`TypeError` if the object is not "
278-
"a :class:`bytearray` object. The C variable may also be declared "
279-
"as :c:expr:`PyObject*`."
277+
"attempting any conversion. Raises :exc:`TypeError` if the object is nota :"
278+
"class:`bytearray` object. The C variable may also be declaredas :c:expr:"
279+
"`PyObject*`."
280280
msgstr""
281281

282282
#:../../c-api/arg.rst:155
@@ -298,8 +298,8 @@ msgstr "``w*`` (可讀寫 :term:`bytes-like object`) [Py_buffer]"
298298
msgid""
299299
"This format accepts any object which implements the read-write buffer "
300300
"interface. It fills a :c:type:`Py_buffer` structure provided by the caller. "
301-
"The buffer may contain embedded null bytes. The caller have to "
302-
"call :c:func:`PyBuffer_Release` when it is done with the buffer."
301+
"The buffer may contain embedded null bytes. The caller have tocall :c:func:"
302+
"`PyBuffer_Release` when it is done with the buffer."
303303
msgstr""
304304

305305
#:../../c-api/arg.rst:166
@@ -327,8 +327,8 @@ msgstr ""
327327
msgid""
328328
":c:func:`PyArg_ParseTuple` will allocate a buffer of the needed size, copy "
329329
"the encoded data into this buffer and adjust *\\*buffer* to reference the "
330-
"newly allocated storage. The caller is responsible for "
331-
"calling :c:func:`PyMem_Free` to free the allocated buffer after use."
330+
"newly allocated storage. The caller is responsible forcalling :c:func:"
331+
"`PyMem_Free` to free the allocated buffer after use."
332332
msgstr""
333333

334334
#:../../c-api/arg.rst:183
@@ -348,11 +348,11 @@ msgstr ""
348348

349349
#:../../c-api/arg.rst:188
350350
msgid""
351-
"``es#`` (:class:`str`) [const char\\*encoding, char "
352-
"\\*\\*buffer, :c:type:`Py_ssize_t`\\*buffer_length]"
351+
"``es#`` (:class:`str`) [const char\\*encoding, char\\*\\*buffer, :c:type:"
352+
"`Py_ssize_t`\\*buffer_length]"
353353
msgstr""
354-
"``es#`` (:class:`str`) [const char\\*encoding, char "
355-
"\\*\\*buffer, :c:type:`Py_ssize_t`\\*buffer_length]"
354+
"``es#`` (:class:`str`) [const char\\*encoding, char\\*\\*buffer, :c:type:"
355+
"`Py_ssize_t`\\*buffer_length]"
356356

357357
#:../../c-api/arg.rst:189
358358
msgid""
@@ -428,11 +428,10 @@ msgstr "數字"
428428
#:../../c-api/arg.rst:232
429429
msgid""
430430
"These formats allow representing Python numbers or single characters as C "
431-
"numbers. Formats that require :class:`int`, :class:`float` "
432-
"or :class:`complex` can also use the corresponding special "
433-
"methods :meth:`~object.__index__`, :meth:`~object.__float__` "
434-
"or :meth:`~object.__complex__` to convert the Python object to the required "
435-
"type."
431+
"numbers. Formats that require :class:`int`, :class:`float` or :class:"
432+
"`complex` can also use the corresponding special methods :meth:`~object."
433+
"__index__`, :meth:`~object.__float__` or :meth:`~object.__complex__` to "
434+
"convert the Python object to the required type."
436435
msgstr""
437436

438437
#:../../c-api/arg.rst:238
@@ -452,8 +451,8 @@ msgid ""
452451
"Convert a nonnegative Python integer to an unsigned tiny integer, stored in "
453452
"a C :c:expr:`unsigned char`."
454453
msgstr""
455-
"將一個 Python 非負整數轉換成無符號 tiny integer(小整數),儲存在 C "
456-
"的 :c:expr:`unsigned`"
454+
"將一個 Python 非負整數轉換成無符號 tiny integer(小整數),儲存在 C的 :c:"
455+
"expr:`unsigned`"
457456

458457
#:../../c-api/arg.rst:248../../c-api/arg.rst:627
459458
msgid"``B`` (:class:`int`) [unsigned char]"
@@ -464,8 +463,8 @@ msgid ""
464463
"Convert a Python integer to a tiny integer without overflow checking, stored "
465464
"in a C :c:expr:`unsigned char`."
466465
msgstr""
467-
"將一個 Python 整數轉換成 tiny integer,轉換過程無溢位檢查,儲存在 C "
468-
"的 :c:expr:`unsigned char`。"
466+
"將一個 Python 整數轉換成 tiny integer,轉換過程無溢位檢查,儲存在 C的 :c:"
467+
"expr:`unsigned char`。"
469468

470469
#:../../c-api/arg.rst:252../../c-api/arg.rst:621
471470
msgid"``h`` (:class:`int`) [short int]"
@@ -612,9 +611,9 @@ msgstr "``O`` (object) [PyObject \\*]"
612611
#:../../c-api/arg.rst:307
613612
msgid""
614613
"Store a Python object (without any conversion) in a C object pointer. The C "
615-
"program thus receives the actual object that was passed. A "
616-
"new :term:`strong reference` to the object is not created (i.e. its "
617-
"reference count isnot increased). The pointer stored is not ``NULL``."
614+
"program thus receives the actual object that was passed. Anew :term:"
615+
"`strong reference` to the object is not created (i.e. its reference count is "
616+
"not increased). The pointer stored is not ``NULL``."
618617
msgstr""
619618

620619
#:../../c-api/arg.rst:313
@@ -648,12 +647,12 @@ msgstr "status = converter(object, address);"
648647

649648
#:../../c-api/arg.rst:330
650649
msgid""
651-
"where *object* is the Python object to be converted and *address* is "
652-
"the :c:expr:`void*` argument that was passed to the ``PyArg_Parse*`` "
653-
"function. Thereturned *status* should be ``1`` for a successful conversion "
654-
"and ``0`` ifthe conversion has failed. When the conversion fails, the "
655-
"*converter*function should raise an exception and leave the content of "
656-
"*address*unmodified."
650+
"where *object* is the Python object to be converted and *address* isthe :c:"
651+
"expr:`void*` argument that was passed to the ``PyArg_Parse*`` function. The "
652+
"returned *status* should be ``1`` for a successful conversion and ``0`` if "
653+
"the conversion has failed. When the conversion fails, the *converter* "
654+
"function should raise an exception and leave the content of *address* "
655+
"unmodified."
657656
msgstr""
658657

659658
#:../../c-api/arg.rst:339
@@ -667,8 +666,8 @@ msgstr ""
667666

668667
#:../../c-api/arg.rst:345
669668
msgid""
670-
"Examples of converters: :c:func:`PyUnicode_FSConverter` "
671-
"and :c:func:`PyUnicode_FSDecoder`."
669+
"Examples of converters: :c:func:`PyUnicode_FSConverter`and :c:func:"
670+
"`PyUnicode_FSDecoder`."
672671
msgstr""
673672

674673
#:../../c-api/arg.rst:348
@@ -748,8 +747,8 @@ msgstr "``;``"
748747
#:../../c-api/arg.rst:390
749748
msgid""
750749
"The list of format units ends here; the string after the semicolon is used "
751-
"as the error message *instead* of the default error message. ``:`` and "
752-
"``;`` mutually exclude each other."
750+
"as the error message *instead* of the default error message. ``:`` and``;"
751+
"`` mutually exclude each other."
753752
msgstr""
754753

755754
#:../../c-api/arg.rst:394
@@ -808,9 +807,9 @@ msgstr ""
808807

809808
#:../../c-api/arg.rst:441
810809
msgid""
811-
"The *keywords* parameter declaration is :c:expr:`char * const *` in C "
812-
"and :c:expr:`const char * const *` in C++. This can be overridden with "
813-
"the :c:macro:`PY_CXX_CONST` macro."
810+
"The *keywords* parameter declaration is :c:expr:`char * const *` in Cand :c:"
811+
"expr:`const char * const *` in C++. This can be overridden withthe :c:macro:"
812+
"`PY_CXX_CONST` macro."
814813
msgstr""
815814

816815
#:../../c-api/arg.rst:445
@@ -821,9 +820,9 @@ msgstr "新增對\\ :ref:`僅限位置參數 <positional-only_parameter>`\\ 的
821820

822821
#:../../c-api/arg.rst:449
823822
msgid""
824-
"The *keywords* parameter has now type :c:expr:`char * const *` in C "
825-
"and :c:expr:`const char * const *` in C++, instead of :c:expr:`char **`. "
826-
"Addedsupport for non-ASCII keyword parameter names."
823+
"The *keywords* parameter has now type :c:expr:`char * const *` in Cand :c:"
824+
"expr:`const char * const *` in C++, instead of :c:expr:`char **`. Added "
825+
"support for non-ASCII keyword parameter names."
827826
msgstr""
828827

829828
#:../../c-api/arg.rst:458
@@ -961,10 +960,10 @@ msgid ""
961960
"When memory buffers are passed as parameters to supply data to build "
962961
"objects, as for the ``s`` and ``s#`` formats, the required data is copied. "
963962
"Buffers provided by the caller are never referenced by the objects created "
964-
"by :c:func:`Py_BuildValue`. In other words, if your code "
965-
"invokes :c:func:`malloc` and passes the allocated memory "
966-
"to:c:func:`Py_BuildValue`, your code is responsible for"
967-
"calling :c:func:`free` for that memory once :c:func:`Py_BuildValue` returns."
963+
"by :c:func:`Py_BuildValue`. In other words, if your codeinvokes :c:func:"
964+
"`malloc` and passes the allocated memory to :c:func:`Py_BuildValue`, your "
965+
"code is responsible for calling:c:func:`free` for that memory once :c:func:"
966+
"`Py_BuildValue` returns."
968967
msgstr""
969968

970969
#:../../c-api/arg.rst:568
@@ -1128,16 +1127,16 @@ msgid ""
11281127
"Convert a C :c:expr:`int` representing a byte to a Python :class:`bytes` "
11291128
"object of length 1."
11301129
msgstr""
1131-
"將一個 C 中代表一個位元組的 :c:expr:`int` 轉換成 Python中長度為一"
1132-
"的 :class:`bytes`。"
1130+
"將一個 C 中代表一個位元組的 :c:expr:`int` 轉換成 Python中長度為一的 :class:"
1131+
"`bytes`。"
11331132

11341133
#:../../c-api/arg.rst:653
11351134
msgid""
11361135
"Convert a C :c:expr:`int` representing a character to Python :class:`str` "
11371136
"object of length 1."
11381137
msgstr""
1139-
"將一個 C 中代表一個字元的 :c:expr:`int` 轉換成 Python中長度為一"
1140-
"的 :class:`str`。"
1138+
"將一個 C 中代表一個字元的 :c:expr:`int` 轉換成 Python中長度為一的 :class:"
1139+
"`str`。"
11411140

11421141
#:../../c-api/arg.rst:657
11431142
msgid"Convert a C :c:expr:`double` to a Python floating-point number."
@@ -1160,9 +1159,9 @@ msgid ""
11601159
"Pass a Python object untouched but create a new :term:`strong reference` to "
11611160
"it (i.e. its reference count is incremented by one). If the object passed in "
11621161
"is a ``NULL`` pointer, it is assumed that this was caused because the call "
1163-
"producing the argument found an error and set an exception. "
1164-
"Therefore, :c:func:`Py_BuildValue` will return ``NULL`` but won't raise an "
1165-
"exception. Ifno exception has been raised yet, :exc:`SystemError` is set."
1162+
"producing the argument found an error and set an exception.Therefore, :c:"
1163+
"func:`Py_BuildValue` will return ``NULL`` but won't raise an exception. If "
1164+
"no exception has been raised yet, :exc:`SystemError` is set."
11661165
msgstr""
11671166

11681167
#:../../c-api/arg.rst:675
@@ -1191,9 +1190,9 @@ msgstr "``O&`` (object) [*converter*, *anything*]"
11911190
#:../../c-api/arg.rst:684
11921191
msgid""
11931192
"Convert *anything* to a Python object through a *converter* function. The "
1194-
"function is called with *anything* (which should be compatible "
1195-
"with :c:expr:`void*`) as its argument and should return a\"new\" Python "
1196-
"object, or``NULL`` if an error occurred."
1193+
"function is called with *anything* (which should be compatiblewith :c:expr:"
1194+
"`void*`) as its argument and should return a\"new\" Python object, or "
1195+
"``NULL`` if an error occurred."
11971196
msgstr""
11981197

11991198
#:../../c-api/arg.rst:690

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp