@@ -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
4141msgid ""
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."
4646msgstr ""
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
5252msgid ""
@@ -114,6 +114,10 @@ msgid ""
114114" // return error\n"
115115"}"
116116msgstr ""
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
119123msgid "is replaced by ::"
@@ -126,22 +130,34 @@ msgid ""
126130"}\n"
127131"slicelength = PySlice_AdjustIndices(length,&start,&stop,step);"
128132msgstr ""
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
131139msgid ""
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."
137145msgstr ""
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
140153msgid ""
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."
144157msgstr ""
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
147163msgid ""
@@ -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."
194210msgstr ""
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
199215msgid ":c:data:`Py_Ellipsis` is immortal."
0 commit comments