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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30281>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to