tests/cpydiff: Add a test for storing iterable to a list slice.
This commit is contained in:
parent
3218ccd70d
commit
465a604547
9
tests/cpydiff/types_list_store_noniter.py
Normal file
9
tests/cpydiff/types_list_store_noniter.py
Normal file
@ -0,0 +1,9 @@
|
||||
"""
|
||||
categories: Types,list
|
||||
description: List slice-store with non-iterable on RHS is not implemented
|
||||
cause: RHS is restricted to be a tuple or list
|
||||
workaround: Use ``list(<iter>)`` on RHS to convert the iterable to a list
|
||||
"""
|
||||
l = [10, 20]
|
||||
l[0:1] = range(4)
|
||||
print(l)
|
Loading…
Reference in New Issue
Block a user