Skip to content
Snippets Groups Projects
Commit 465a6045 authored by Damien George's avatar Damien George
Browse files

tests/cpydiff: Add a test for storing iterable to a list slice.

parent 3218ccd7
No related branches found
No related tags found
No related merge requests found
"""
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment