Issue1818353

classification
Title: sliceLength of PySequence returns 0 when step is sys.maxint
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, rajesh_battala
Priority: normal Keywords:

Created on 2007-10-23.07:19:13 by rajesh_battala, last changed 2007-12-02.07:23:26 by cgroves.

Messages
msg1996 (view) Author: rajesh battala (rajesh_battala) Date: 2007-10-23.07:19:13
The mismatch is found when we use the following code in both of jython and cpython. Please see below...

In Jython :- 
>>> import sys
>>> range(10)[::sys.maxint - 9]
[0]
>>> range(10)[::sys.maxint - 1]
[]

In CPython :-
>>> import sys
>>> range(10)[::sys.maxint - 9]
[0]
>>> range(10)[::sys.maxint - 1]
[0]

msg1997 (view) Author: Charlie Groves (cgroves) Date: 2007-12-02.07:23:26
Fixed in r3749.
History
Date User Action Args
2007-10-23 07:19:13rajesh_battalacreate