[pypy-issue] [issue1300] list slice out of bound raise rpython error
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.
status: unread -> invalid
PyPy bug tracker <tracker at bugs.pypy.org>
More information about the pypy-issue