Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96b60aa

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 847c803c
1 parent 03b6540 commit 96b60aa

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

c-api/slice.po

Lines changed: 27 additions & 22 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-07-22 00:04+0000\n"
11+
"POT-Creation-Date: 2024-07-11 00:04+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:07+0000\n"
1313
"Last-Translator: Adrian Liaw <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -40,34 +40,39 @@ msgid ""
4040
"Return a new slice object with the given values. The *start*, *stop*, and "
4141
"*step* parameters are used as the values of the slice object attributes of "
4242
"the same names. Any of the values may be ``NULL``, in which case the "
43-
"``None`` will be used for the corresponding attribute. Return ``NULL`` if "
44-
"the new object could not be allocated."
43+
"``None`` will be used for the corresponding attribute."
4544
msgstr ""
4645

47-
#: ../../c-api/slice.rst:32
46+
#: ../../c-api/slice.rst:28
47+
msgid ""
48+
"Return ``NULL`` with an exception set if the new object could not be "
49+
"allocated."
50+
msgstr ""
51+
52+
#: ../../c-api/slice.rst:34
4853
msgid ""
4954
"Retrieve the start, stop and step indices from the slice object *slice*, "
5055
"assuming a sequence of length *length*. Treats indices greater than *length* "
5156
"as errors."
5257
msgstr ""
5358

54-
#: ../../c-api/slice.rst:36
59+
#: ../../c-api/slice.rst:38
5560
msgid ""
5661
"Returns ``0`` on success and ``-1`` on error with no exception set (unless "
5762
"one of the indices was not ``None`` and failed to be converted to an "
5863
"integer, in which case ``-1`` is returned with an exception set)."
5964
msgstr ""
6065

61-
#: ../../c-api/slice.rst:40
66+
#: ../../c-api/slice.rst:42
6267
msgid "You probably do not want to use this function."
6368
msgstr ""
6469

65-
#: ../../c-api/slice.rst:42 ../../c-api/slice.rst:73
70+
#: ../../c-api/slice.rst:44 ../../c-api/slice.rst:75
6671
msgid ""
6772
"The parameter type for the *slice* parameter was ``PySliceObject*`` before."
6873
msgstr ""
6974

70-
#: ../../c-api/slice.rst:49
75+
#: ../../c-api/slice.rst:51
7176
msgid ""
7277
"Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, "
7378
"stop, and step indices from the slice object *slice* assuming a sequence of "
@@ -76,22 +81,22 @@ msgid ""
7681
"normal slices."
7782
msgstr ""
7883

79-
#: ../../c-api/slice.rst:55
80-
msgid "Returns ``0`` on success and ``-1`` on error with exception set."
84+
#: ../../c-api/slice.rst:57
85+
msgid "Return ``0`` on success and ``-1`` on error with an exception set."
8186
msgstr ""
8287

83-
#: ../../c-api/slice.rst:58
88+
#: ../../c-api/slice.rst:60
8489
msgid ""
8590
"This function is considered not safe for resizable sequences. Its invocation "
8691
"should be replaced by a combination of :c:func:`PySlice_Unpack` and :c:func:"
8792
"`PySlice_AdjustIndices` where ::"
8893
msgstr ""
8994

90-
#: ../../c-api/slice.rst:66
95+
#: ../../c-api/slice.rst:68
9196
msgid "is replaced by ::"
9297
msgstr ""
9398

94-
#: ../../c-api/slice.rst:77
99+
#: ../../c-api/slice.rst:79
95100
msgid ""
96101
"If ``Py_LIMITED_API`` is not set or set to the value between ``0x03050400`` "
97102
"and ``0x03060000`` (not including) or ``0x03060100`` or higher :c:func:`!"
@@ -100,14 +105,14 @@ msgid ""
100105
"*stop* and *step* are evaluated more than once."
101106
msgstr ""
102107

103-
#: ../../c-api/slice.rst:84
108+
#: ../../c-api/slice.rst:86
104109
msgid ""
105110
"If ``Py_LIMITED_API`` is set to the value less than ``0x03050400`` or "
106111
"between ``0x03060000`` and ``0x03060100`` (not including) :c:func:`!"
107112
"PySlice_GetIndicesEx` is a deprecated function."
108113
msgstr ""
109114

110-
#: ../../c-api/slice.rst:92
115+
#: ../../c-api/slice.rst:94
111116
msgid ""
112117
"Extract the start, stop and step data members from a slice object as C "
113118
"integers. Silently reduce values larger than ``PY_SSIZE_T_MAX`` to "
@@ -116,34 +121,34 @@ msgid ""
116121
"less than ``-PY_SSIZE_T_MAX`` to ``-PY_SSIZE_T_MAX``."
117122
msgstr ""
118123

119-
#: ../../c-api/slice.rst:98
120-
msgid "Return ``-1`` on error, ``0`` on success."
124+
#: ../../c-api/slice.rst:100
125+
msgid "Return ``-1`` with an exception set on error, ``0`` on success."
121126
msgstr ""
122127

123-
#: ../../c-api/slice.rst:105
128+
#: ../../c-api/slice.rst:107
124129
msgid ""
125130
"Adjust start/end slice indices assuming a sequence of the specified length. "
126131
"Out of bounds indices are clipped in a manner consistent with the handling "
127132
"of normal slices."
128133
msgstr ""
129134

130-
#: ../../c-api/slice.rst:109
135+
#: ../../c-api/slice.rst:111
131136
msgid ""
132137
"Return the length of the slice. Always successful. Doesn't call Python "
133138
"code."
134139
msgstr ""
135140

136-
#: ../../c-api/slice.rst:116
141+
#: ../../c-api/slice.rst:118
137142
msgid "Ellipsis Object"
138143
msgstr ""
139144

140-
#: ../../c-api/slice.rst:121
145+
#: ../../c-api/slice.rst:123
141146
msgid ""
142147
"The Python ``Ellipsis`` object. This object has no methods. Like :c:data:"
143148
"`Py_None`, it is an `immortal <https://peps.python.org/pep-0683/>`_. "
144149
"singleton object."
145150
msgstr ""
146151

147-
#: ../../c-api/slice.rst:125
152+
#: ../../c-api/slice.rst:127
148153
msgid ":c:data:`Py_Ellipsis` is immortal."
149154
msgstr ":c:data:`Py_Ellipsis` 為不滅的 (immortal)。"

0 commit comments

Comments
 (0)