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
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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment