[pypy-issue] Issue #2196: RPython should support list-resizing setslice operations (pypy/pypy)
issues-reply at bitbucket.org
Thu Nov 26 15:02:14 EST 2015
New issue 2196: RPython should support list-resizing setslice operations
Currently, RPython only supports `list1[a:b] = list2` if `b - a == len(list2)`. It should support it in all cases. This would simplify some interp-level code like https://bitbucket.org/pypy/pypy/src/d4774974048860b281f9d7cdd7723e5da3e62092/pypy/objspace/std/listobject.py?at=default&fileviewer=file-view-default#listobject.py-1473 and avoid confusing the annotator. The main function to change is `rpython.rtyper.rlist.ll_listsetslice`.
BTW, this is probably doable by a newcomer without too much trouble.
More information about the pypy-issue