Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
465a6045
Commit
465a6045
authored
Feb 20, 2017
by
Damien George
Browse files
tests/cpydiff: Add a test for storing iterable to a list slice.
parent
3218ccd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cpydiff/types_list_store_noniter.py
0 → 100644
View file @
465a6045
"""
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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment