File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ Slice Objects
23
23
Return a new slice object with the given values. The *start *, *stop *, and
24
24
*step * parameters are used as the values of the slice object attributes of
25
25
the same names. Any of the values may be ``NULL ``, in which case the
26
- ``None `` will be used for the corresponding attribute. Return ``NULL `` if
26
+ ``None `` will be used for the corresponding attribute.
27
+
28
+ Return ``NULL `` with an exception set if
27
29
the new object could not be allocated.
28
30
29
31
@@ -52,7 +54,7 @@ Slice Objects
52
54
of bounds indices are clipped in a manner consistent with the handling of
53
55
normal slices.
54
56
55
- Returns ``0 `` on success and ``-1 `` on error with exception set.
57
+ Return ``0 `` on success and ``-1 `` on error with an exception set.
56
58
57
59
.. note ::
58
60
This function is considered not safe for resizable sequences.
@@ -95,7 +97,7 @@ Slice Objects
95
97
``PY_SSIZE_T_MIN `` to ``PY_SSIZE_T_MIN ``, and silently boost the step
96
98
values less than ``-PY_SSIZE_T_MAX `` to ``-PY_SSIZE_T_MAX ``.
97
99
98
- Return ``-1 `` on error, ``0 `` on success.
100
+ Return ``-1 `` with an exception set on error, ``0 `` on success.
99
101
100
102
.. versionadded :: 3.6.1
101
103
You can’t perform that action at this time.
0 commit comments