[issue21856] memoryview: no overflow on large slice values (start, stop, step)

Stefan Krah report at bugs.python.org
Tue Jun 24 11:45:16 CEST 2014


Stefan Krah added the comment:

It's a slice of length zero:

>>> b = bytearray([1,2,3,4])
>>> m = memoryview(b)
>>>
>>> b2 = b[2**100:]
>>> m2 = m[2**100:]
>>>
>>> list(b2)
[]
>>> list(m2)
[]
>>>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21856>
_______________________________________


More information about the Python-bugs-list mailing list