[pypy-issue] [issue1300] list slice out of bound raise rpython error

Armin Rigo tracker at bugs.pypy.org
Wed Oct 24 16:36:46 CEST 2012


Armin Rigo <armin.rigo at gmail.com> added the comment:

No, that's wrong: RPython assumes that some slice indices are not out-of-bounds.
 You get a MemoryError because it's trying to allocate a list of -1 elements. 
For the exact rules see *slicing* in pypy/doc/coding-guide.rst.

----------
nosy: +arigo
status: unread -> invalid

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1300>
________________________________________


More information about the pypy-issue mailing list