6
6
msgstr ""
7
7
"Project-Id-Version : Python 3.13\n "
8
8
"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 "
10
10
"PO-Revision-Date : 2022-10-16 03:21+0800\n "
11
11
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
12
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -24,18 +24,18 @@ msgstr "剖析引數與建置數值"
24
24
25
25
#: ../../c-api/arg.rst:8
26
26
msgid ""
27
- "These functions are useful when creating your own extensions functions and "
28
- "methods. Additional information and examples are available "
29
- "in :ref: `extending-index`."
27
+ "These functions are useful when creating your own extension functions and "
28
+ "methods. Additional information and examples are available in :ref: "
29
+ "`extending-index`."
30
30
msgstr ""
31
31
32
32
#: ../../c-api/arg.rst:12
33
33
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 expected arguments. The format strings use the same "
38
- "syntax for each of these functions."
34
+ "The first three of these functions described, :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."
39
39
msgstr ""
40
40
41
41
#: ../../c-api/arg.rst:19
@@ -108,10 +108,10 @@ msgstr ""
108
108
109
109
#: ../../c-api/arg.rst:70
110
110
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
- "This disallows common mutable objects such as :class:`bytearray`, but also "
114
- "some read-only objects such as :class:`memoryview` of :class:`bytes`."
111
+ "To ensure that the underlying buffer may be safely borrowed, the object'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`."
115
115
msgstr ""
116
116
117
117
#: ../../c-api/arg.rst:76
@@ -139,8 +139,8 @@ msgstr ""
139
139
msgid ""
140
140
"This format does not accept :term:`bytes-like objects <bytes-like object>`. "
141
141
"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&`` format with :c:func: "
143
+ "`PyUnicode_FSConverter` as *converter*."
144
144
msgstr ""
145
145
146
146
#: ../../c-api/arg.rst:96
@@ -163,11 +163,11 @@ msgstr ""
163
163
164
164
#: ../../c-api/arg.rst:106
165
165
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`]"
168
168
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`]"
171
171
172
172
#: ../../c-api/arg.rst:107
173
173
msgid ""
@@ -244,11 +244,11 @@ msgstr ""
244
244
245
245
#: ../../c-api/arg.rst:141
246
246
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`]"
249
249
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`]"
252
252
253
253
#: ../../c-api/arg.rst:142
254
254
msgid ""
@@ -274,9 +274,9 @@ msgstr "``Y`` (:class:`bytearray`) [PyByteArrayObject \\*]"
274
274
#: ../../c-api/arg.rst:151
275
275
msgid ""
276
276
"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 not a : "
278
+ "class:`bytearray` object. The C variable may also be declared as :c:expr: "
279
+ "`PyObject*`."
280
280
msgstr ""
281
281
282
282
#: ../../c-api/arg.rst:155
@@ -298,8 +298,8 @@ msgstr "``w*`` (可讀寫 :term:`bytes-like object`) [Py_buffer]"
298
298
msgid ""
299
299
"This format accepts any object which implements the read-write buffer "
300
300
"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 to call :c:func: "
302
+ "`PyBuffer_Release` when it is done with the buffer."
303
303
msgstr ""
304
304
305
305
#: ../../c-api/arg.rst:166
@@ -327,8 +327,8 @@ msgstr ""
327
327
msgid ""
328
328
":c:func:`PyArg_ParseTuple` will allocate a buffer of the needed size, copy "
329
329
"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 for calling :c:func: "
331
+ "`PyMem_Free` to free the allocated buffer after use."
332
332
msgstr ""
333
333
334
334
#: ../../c-api/arg.rst:183
@@ -348,11 +348,11 @@ msgstr ""
348
348
349
349
#: ../../c-api/arg.rst:188
350
350
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]"
353
353
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]"
356
356
357
357
#: ../../c-api/arg.rst:189
358
358
msgid ""
@@ -428,11 +428,10 @@ msgstr "數字"
428
428
#: ../../c-api/arg.rst:232
429
429
msgid ""
430
430
"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."
436
435
msgstr ""
437
436
438
437
#: ../../c-api/arg.rst:238
@@ -452,8 +451,8 @@ msgid ""
452
451
"Convert a nonnegative Python integer to an unsigned tiny integer, stored in "
453
452
"a C :c:expr:`unsigned char`."
454
453
msgstr ""
455
- "將一個 Python 非負整數轉換成無符號 tiny integer(小整數),儲存在 C "
456
- "的 :c: expr:`unsigned`"
454
+ "將一個 Python 非負整數轉換成無符號 tiny integer(小整數),儲存在 C 的 :c: "
455
+ "expr:`unsigned`"
457
456
458
457
#: ../../c-api/arg.rst:248 ../../c-api/arg.rst:627
459
458
msgid "``B`` (:class:`int`) [unsigned char]"
@@ -464,8 +463,8 @@ msgid ""
464
463
"Convert a Python integer to a tiny integer without overflow checking, stored "
465
464
"in a C :c:expr:`unsigned char`."
466
465
msgstr ""
467
- "將一個 Python 整數轉換成 tiny integer,轉換過程無溢位檢查,儲存在 C "
468
- "的 :c: expr:`unsigned char`。"
466
+ "將一個 Python 整數轉換成 tiny integer,轉換過程無溢位檢查,儲存在 C 的 :c: "
467
+ "expr:`unsigned char`。"
469
468
470
469
#: ../../c-api/arg.rst:252 ../../c-api/arg.rst:621
471
470
msgid "``h`` (:class:`int`) [short int]"
@@ -612,9 +611,9 @@ msgstr "``O`` (object) [PyObject \\*]"
612
611
#: ../../c-api/arg.rst:307
613
612
msgid ""
614
613
"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 is not increased). The pointer stored is not ``NULL``."
614
+ "program thus receives the actual object that was passed. A new :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``."
618
617
msgstr ""
619
618
620
619
#: ../../c-api/arg.rst:313
@@ -648,12 +647,12 @@ msgstr "status = converter(object, address);"
648
647
649
648
#: ../../c-api/arg.rst:330
650
649
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. The returned *status* should be ``1`` for a successful conversion "
654
- "and ``0`` if the 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* is the :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."
657
656
msgstr ""
658
657
659
658
#: ../../c-api/arg.rst:339
@@ -667,8 +666,8 @@ msgstr ""
667
666
668
667
#: ../../c-api/arg.rst:345
669
668
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`."
672
671
msgstr ""
673
672
674
673
#: ../../c-api/arg.rst:348
@@ -748,8 +747,8 @@ msgstr "``;``"
748
747
#: ../../c-api/arg.rst:390
749
748
msgid ""
750
749
"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."
753
752
msgstr ""
754
753
755
754
#: ../../c-api/arg.rst:394
@@ -808,9 +807,9 @@ msgstr ""
808
807
809
808
#: ../../c-api/arg.rst:441
810
809
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 C and :c: "
811
+ "expr:`const char * const *` in C++. This can be overridden with the :c:macro: "
812
+ "`PY_CXX_CONST` macro."
814
813
msgstr ""
815
814
816
815
#: ../../c-api/arg.rst:445
@@ -821,9 +820,9 @@ msgstr "新增對\\ :ref:`僅限位置參數 <positional-only_parameter>`\\ 的
821
820
822
821
#: ../../c-api/arg.rst:449
823
822
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
- "Added support for non-ASCII keyword parameter names."
823
+ "The *keywords* parameter has now type :c:expr:`char * const *` in C and :c: "
824
+ "expr:`const char * const *` in C++, instead of :c:expr:`char **`. Added "
825
+ "support for non-ASCII keyword parameter names."
827
826
msgstr ""
828
827
829
828
#: ../../c-api/arg.rst:458
@@ -961,10 +960,10 @@ msgid ""
961
960
"When memory buffers are passed as parameters to supply data to build "
962
961
"objects, as for the ``s`` and ``s#`` formats, the required data is copied. "
963
962
"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 code invokes :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."
968
967
msgstr ""
969
968
970
969
#: ../../c-api/arg.rst:568
@@ -1128,16 +1127,16 @@ msgid ""
1128
1127
"Convert a C :c:expr:`int` representing a byte to a Python :class:`bytes` "
1129
1128
"object of length 1."
1130
1129
msgstr ""
1131
- "將一個 C 中代表一個位元組的 :c:expr:`int` 轉換成 Python 中長度為一 "
1132
- "的 :class: `bytes`。"
1130
+ "將一個 C 中代表一個位元組的 :c:expr:`int` 轉換成 Python 中長度為一的 :class: "
1131
+ "`bytes`。"
1133
1132
1134
1133
#: ../../c-api/arg.rst:653
1135
1134
msgid ""
1136
1135
"Convert a C :c:expr:`int` representing a character to Python :class:`str` "
1137
1136
"object of length 1."
1138
1137
msgstr ""
1139
- "將一個 C 中代表一個字元的 :c:expr:`int` 轉換成 Python 中長度為一 "
1140
- "的 :class: `str`。"
1138
+ "將一個 C 中代表一個字元的 :c:expr:`int` 轉換成 Python 中長度為一的 :class: "
1139
+ "`str`。"
1141
1140
1142
1141
#: ../../c-api/arg.rst:657
1143
1142
msgid "Convert a C :c:expr:`double` to a Python floating-point number."
@@ -1160,9 +1159,9 @@ msgid ""
1160
1159
"Pass a Python object untouched but create a new :term:`strong reference` to "
1161
1160
"it (i.e. its reference count is incremented by one). If the object passed in "
1162
1161
"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. If no 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."
1166
1165
msgstr ""
1167
1166
1168
1167
#: ../../c-api/arg.rst:675
@@ -1191,9 +1190,9 @@ msgstr "``O&`` (object) [*converter*, *anything*]"
1191
1190
#: ../../c-api/arg.rst:684
1192
1191
msgid ""
1193
1192
"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 compatible with :c:expr: "
1194
+ "`void*`) as its argument and should return a \" new\" Python object, or "
1195
+ "``NULL`` if an error occurred."
1197
1196
msgstr ""
1198
1197
1199
1198
#: ../../c-api/arg.rst:690
0 commit comments