[New-bugs-announce] [issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack
Xiang Zhang
report at bugs.python.org
Fri May 5 06:47:45 EDT 2017
New submission from Xiang Zhang:
The default value for stop in PySlice_Unpack should be -PY_SSIZE_T_MAX-1. Otherwise a sequence of length PY_SSIZE_T_MAX could get a wrong slicelength when doing L[::-1].
----------
components: Interpreter Core
messages: 293097
nosy: serhiy.storchaka, xiang.zhang
priority: normal
severity: normal
stage: patch review
status: open
title: set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30281>
_______________________________________
More information about the New-bugs-announce
mailing list