extended slice assignment differences

Issue #2804 resolved
Christoph Reiter
created an issue
a = []
a[::-1] = [42]
print(a)

CPython:

ValueError: attempt to assign sequence of size 1 to extended slice of size 0

PyPy: no error, it adds 42 to the list.

Comments (3)

  1. Log in to comment