diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/tools/cython/Cython/Includes/cpython/slice.pxd | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/cpython/slice.pxd')
-rw-r--r-- | contrib/tools/cython/Cython/Includes/cpython/slice.pxd | 46 |
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 ea81cbc3fe..202dea716c 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. |