8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.12\n "
10
10
"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 "
12
12
"PO-Revision-Date : 2018-05-23 14:07+0000\n "
13
13
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
14
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -40,34 +40,39 @@ msgid ""
40
40
"Return a new slice object with the given values. The *start*, *stop*, and "
41
41
"*step* parameters are used as the values of the slice object attributes of "
42
42
"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."
45
44
msgstr ""
46
45
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
48
53
msgid ""
49
54
"Retrieve the start, stop and step indices from the slice object *slice*, "
50
55
"assuming a sequence of length *length*. Treats indices greater than *length* "
51
56
"as errors."
52
57
msgstr ""
53
58
54
- #: ../../c-api/slice.rst:36
59
+ #: ../../c-api/slice.rst:38
55
60
msgid ""
56
61
"Returns ``0`` on success and ``-1`` on error with no exception set (unless "
57
62
"one of the indices was not ``None`` and failed to be converted to an "
58
63
"integer, in which case ``-1`` is returned with an exception set)."
59
64
msgstr ""
60
65
61
- #: ../../c-api/slice.rst:40
66
+ #: ../../c-api/slice.rst:42
62
67
msgid "You probably do not want to use this function."
63
68
msgstr ""
64
69
65
- #: ../../c-api/slice.rst:42 ../../c-api/slice.rst:73
70
+ #: ../../c-api/slice.rst:44 ../../c-api/slice.rst:75
66
71
msgid ""
67
72
"The parameter type for the *slice* parameter was ``PySliceObject*`` before."
68
73
msgstr ""
69
74
70
- #: ../../c-api/slice.rst:49
75
+ #: ../../c-api/slice.rst:51
71
76
msgid ""
72
77
"Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, "
73
78
"stop, and step indices from the slice object *slice* assuming a sequence of "
@@ -76,22 +81,22 @@ msgid ""
76
81
"normal slices."
77
82
msgstr ""
78
83
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."
81
86
msgstr ""
82
87
83
- #: ../../c-api/slice.rst:58
88
+ #: ../../c-api/slice.rst:60
84
89
msgid ""
85
90
"This function is considered not safe for resizable sequences. Its invocation "
86
91
"should be replaced by a combination of :c:func:`PySlice_Unpack` and :c:func:"
87
92
"`PySlice_AdjustIndices` where ::"
88
93
msgstr ""
89
94
90
- #: ../../c-api/slice.rst:66
95
+ #: ../../c-api/slice.rst:68
91
96
msgid "is replaced by ::"
92
97
msgstr ""
93
98
94
- #: ../../c-api/slice.rst:77
99
+ #: ../../c-api/slice.rst:79
95
100
msgid ""
96
101
"If ``Py_LIMITED_API`` is not set or set to the value between ``0x03050400`` "
97
102
"and ``0x03060000`` (not including) or ``0x03060100`` or higher :c:func:`!"
@@ -100,14 +105,14 @@ msgid ""
100
105
"*stop* and *step* are evaluated more than once."
101
106
msgstr ""
102
107
103
- #: ../../c-api/slice.rst:84
108
+ #: ../../c-api/slice.rst:86
104
109
msgid ""
105
110
"If ``Py_LIMITED_API`` is set to the value less than ``0x03050400`` or "
106
111
"between ``0x03060000`` and ``0x03060100`` (not including) :c:func:`!"
107
112
"PySlice_GetIndicesEx` is a deprecated function."
108
113
msgstr ""
109
114
110
- #: ../../c-api/slice.rst:92
115
+ #: ../../c-api/slice.rst:94
111
116
msgid ""
112
117
"Extract the start, stop and step data members from a slice object as C "
113
118
"integers. Silently reduce values larger than ``PY_SSIZE_T_MAX`` to "
@@ -116,34 +121,34 @@ msgid ""
116
121
"less than ``-PY_SSIZE_T_MAX`` to ``-PY_SSIZE_T_MAX``."
117
122
msgstr ""
118
123
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."
121
126
msgstr ""
122
127
123
- #: ../../c-api/slice.rst:105
128
+ #: ../../c-api/slice.rst:107
124
129
msgid ""
125
130
"Adjust start/end slice indices assuming a sequence of the specified length. "
126
131
"Out of bounds indices are clipped in a manner consistent with the handling "
127
132
"of normal slices."
128
133
msgstr ""
129
134
130
- #: ../../c-api/slice.rst:109
135
+ #: ../../c-api/slice.rst:111
131
136
msgid ""
132
137
"Return the length of the slice. Always successful. Doesn't call Python "
133
138
"code."
134
139
msgstr ""
135
140
136
- #: ../../c-api/slice.rst:116
141
+ #: ../../c-api/slice.rst:118
137
142
msgid "Ellipsis Object"
138
143
msgstr ""
139
144
140
- #: ../../c-api/slice.rst:121
145
+ #: ../../c-api/slice.rst:123
141
146
msgid ""
142
147
"The Python ``Ellipsis`` object. This object has no methods. Like :c:data:"
143
148
"`Py_None`, it is an `immortal <https://peps.python.org/pep-0683/>`_. "
144
149
"singleton object."
145
150
msgstr ""
146
151
147
- #: ../../c-api/slice.rst:125
152
+ #: ../../c-api/slice.rst:127
148
153
msgid ":c:data:`Py_Ellipsis` is immortal."
149
154
msgstr ":c:data:`Py_Ellipsis` 為不滅的 (immortal)。"
0 commit comments