aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/cpython/slice.pxd
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/tools/cython/Cython/Includes/cpython/slice.pxd
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
downloadydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/cpython/slice.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/cpython/slice.pxd46
1 files changed, 23 insertions, 23 deletions
diff --git a/contrib/tools/cython/Cython/Includes/cpython/slice.pxd b/contrib/tools/cython/Cython/Includes/cpython/slice.pxd
index 202dea716c..ea81cbc3fe 100644
--- a/contrib/tools/cython/Cython/Includes/cpython/slice.pxd
+++ b/contrib/tools/cython/Cython/Includes/cpython/slice.pxd
@@ -45,26 +45,26 @@ cdef extern from "Python.h":
#
# Changed in version 3.2: The parameter type for the slice parameter was
# PySliceObject* before.
-
- int PySlice_Unpack(object slice, Py_ssize_t *start, Py_ssize_t *stop,
- Py_ssize_t *step) except -1
- # Extract the start, stop and step data members from a slice object as C
- # integers. Silently reduce values larger than PY_SSIZE_T_MAX to
- # PY_SSIZE_T_MAX, silently boost the start and stop values less than
- # PY_SSIZE_T_MIN to PY_SSIZE_T_MIN, and silently boost the step values
- # less than -PY_SSIZE_T_MAX to -PY_SSIZE_T_MAX.
-
- # Return -1 on error, 0 on success.
-
- # New in version 3.6.1.
-
- Py_ssize_t PySlice_AdjustIndices(Py_ssize_t length, Py_ssize_t *start,
- Py_ssize_t *stop, Py_ssize_t step)
- # Adjust start/end slice indices assuming a sequence of the specified
- # length. Out of bounds indices are clipped in a manner consistent with
- # the handling of normal slices.
-
- # Return the length of the slice. Always successful. Doesn’t call Python
- # code.
-
- # New in version 3.6.1.
+
+ int PySlice_Unpack(object slice, Py_ssize_t *start, Py_ssize_t *stop,
+ Py_ssize_t *step) except -1
+ # Extract the start, stop and step data members from a slice object as C
+ # integers. Silently reduce values larger than PY_SSIZE_T_MAX to
+ # PY_SSIZE_T_MAX, silently boost the start and stop values less than
+ # PY_SSIZE_T_MIN to PY_SSIZE_T_MIN, and silently boost the step values
+ # less than -PY_SSIZE_T_MAX to -PY_SSIZE_T_MAX.
+
+ # Return -1 on error, 0 on success.
+
+ # New in version 3.6.1.
+
+ Py_ssize_t PySlice_AdjustIndices(Py_ssize_t length, Py_ssize_t *start,
+ Py_ssize_t *stop, Py_ssize_t step)
+ # Adjust start/end slice indices assuming a sequence of the specified
+ # length. Out of bounds indices are clipped in a manner consistent with
+ # the handling of normal slices.
+
+ # Return the length of the slice. Always successful. Doesn’t call Python
+ # code.
+
+ # New in version 3.6.1.