Skip to content

Commit a0798b3

Browse files
committed
Update slice.po
1 parent 3fce0d0 commit a0798b3

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

c-api/slice.po

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version: Python 3.14\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2025-02-18 00:13+0000\n"
12-
"PO-Revision-Date: 2025-10-08 20:45+0800\n"
12+
"PO-Revision-Date: 2025-10-08 21:36+0800\n"
1313
"Last-Translator: Weilin Du <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1515
"tw)\n"
@@ -39,14 +39,14 @@ msgstr ""
3939

4040
#: ../../c-api/slice.rst:23
4141
msgid ""
42-
"Return a new slice object with the given values. The *start**stop*and "
42+
"Return a new slice object with the given values. The *start*, *stop*, and "
4343
"*step* parameters are used as the values of the slice object attributes of "
44-
"the same names. Any of the values may be ``NULL``in which case the "
44+
"the same names. Any of the values may be ``NULL``, in which case the "
4545
"``None`` will be used for the corresponding attribute."
4646
msgstr ""
47-
"以指定的值回傳一個新的切片物件。*start*、*stop* 及 *step* 參數會被用為同名"
48-
"slice 物件屬性值。任何值都可能是 ``NULL``,在這種情況下,``None`` 將用於"
49-
"相對應的屬性。"
47+
"以指定的值回傳一個新的切片物件。*start*、*stop* 及 *step* 參數會被用為同名的 "
48+
"slice 物件屬性值。任何值都可能是 ``NULL``,在這種情況下,``None`` 將用於相對"
49+
"應的屬性。"
5050

5151
#: ../../c-api/slice.rst:28
5252
msgid ""
@@ -114,6 +114,10 @@ msgid ""
114114
" // return error\n"
115115
"}"
116116
msgstr ""
117+
"if (PySlice_GetIndicesEx(slice,length,&start,&stop,&step,&slicelength) "
118+
"< 0) {\n"
119+
" // return error\n"
120+
"}"
117121

118122
#: ../../c-api/slice.rst:68
119123
msgid "is replaced by ::"
@@ -126,22 +130,34 @@ msgid ""
126130
"}\n"
127131
"slicelength = PySlice_AdjustIndices(length,&start,&stop,step);"
128132
msgstr ""
133+
"if (PySlice_Unpack(slice,&start,&stop,&step) < 0) {\n"
134+
" // return error\n"
135+
"}\n"
136+
"slicelength = PySlice_AdjustIndices(length,&start,&stop,step);"
129137

130138
#: ../../c-api/slice.rst:79
131139
msgid ""
132140
"If ``Py_LIMITED_API`` is not set or set to the value between ``0x03050400`` "
133141
"and ``0x03060000`` (not including) or ``0x03060100`` or higher :c:func:`!"
134142
"PySlice_GetIndicesEx` is implemented as a macro using :c:func:`!"
135-
"PySlice_Unpack` and :c:func:`!PySlice_AdjustIndices`. Arguments *start*"
143+
"PySlice_Unpack` and :c:func:`!PySlice_AdjustIndices`. Arguments *start*,"
136144
"*stop* and *step* are evaluated more than once."
137145
msgstr ""
146+
"If ``Py_LIMITED_API`` is not set or set to the value between ``0x03050400`` "
147+
"and ``0x03060000`` (not including) or ``0x03060100`` or higher :c:func:`!"
148+
"PySlice_GetIndicesEx` is implemented as a macro using :c:func:`!"
149+
"PySlice_Unpack` and :c:func:`!PySlice_AdjustIndices`. Arguments *start*,"
150+
"*stop* and *step* are evaluated more than once."
138151

139152
#: ../../c-api/slice.rst:86
140153
msgid ""
141154
"If ``Py_LIMITED_API`` is set to the value less than ``0x03050400`` or "
142155
"between ``0x03060000`` and ``0x03060100`` (not including) :c:func:`!"
143156
"PySlice_GetIndicesEx` is a deprecated function."
144157
msgstr ""
158+
"If ``Py_LIMITED_API`` is set to the value less than ``0x03050400`` or "
159+
"between ``0x03060000`` and ``0x03060100`` (not including) :c:func:`!"
160+
"PySlice_GetIndicesEx` is a deprecated function."
145161

146162
#: ../../c-api/slice.rst:94
147163
msgid ""
@@ -192,8 +208,8 @@ msgid ""
192208
"The Python ``Ellipsis`` object. This object has no methods. "
193209
"Like :c:data:`Py_None`,it is an :term:`immortal` singleton object."
194210
msgstr ""
195-
"Python ``Ellipsis`` 物件。這個物件沒有方法。就像 :c:data:`Py_None` 一樣,"
196-
"是一個 :term:`immortal` 單一物件。"
211+
"Python ``Ellipsis`` 物件。這個物件沒有方法。就像 :c:data:`Py_None` 一樣,它是"
212+
"一個 :term:`immortal` 單一物件。"
197213

198214
#: ../../c-api/slice.rst:132
199215
msgid ":c:data:`Py_Ellipsis` is immortal."

0 commit comments

Comments
 (0)