summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/slice.rst
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-05-10 10:19:41 (GMT)
committerGitHub <noreply@github.com>2017-05-10 10:19:41 (GMT)
commit2ddf5a19c3a06978edff2c8ba0aaf5df3528204a (patch)
tree8a4b6f0ae35ee772702912050fd252b9e360c482 /Doc/c-api/slice.rst
parent305ccbe27ea5ba82fd2d8c32ec739f980e524330 (diff)
downloadcpython-2ddf5a19c3a06978edff2c8ba0aaf5df3528204a.zip
cpython-2ddf5a19c3a06978edff2c8ba0aaf5df3528204a.tar.gz
cpython-2ddf5a19c3a06978edff2c8ba0aaf5df3528204a.tar.bz2
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480)
Diffstat (limited to 'Doc/c-api/slice.rst')
-rw-r--r--Doc/c-api/slice.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/slice.rst b/Doc/c-api/slice.rst
index aece011..f8395ec 100644
--- a/Doc/c-api/slice.rst
+++ b/Doc/c-api/slice.rst
@@ -75,7 +75,7 @@ Slice Objects
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_MAX-1`` to ``-PY_SSIZE_T_MAX-1``, and silently boost the step
+ ``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.