Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
32b9adc9
Commit
32b9adc9
authored
Feb 16, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: too few arguments to unpack
parent
ecb620b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
tests/run/unpacklistcomp.pyx
tests/run/unpacklistcomp.pyx
+10
-1
No files found.
tests/run/unpacklistcomp.pyx
View file @
32b9adc9
...
@@ -4,18 +4,27 @@ __doc__ = """
...
@@ -4,18 +4,27 @@ __doc__ = """
>>> unpack_normal([1,2,3])
>>> unpack_normal([1,2,3])
Traceback (most recent call last):
Traceback (most recent call last):
ValueError: too many values to unpack
ValueError: too many values to unpack
>>> unpack_normal([1])
Traceback (most recent call last):
ValueError: need more than 1 values to unpack
>>> unpack_comp([1,2])
>>> unpack_comp([1,2])
(1, 2)
(1, 2)
>>> unpack_comp([1,2,3])
>>> unpack_comp([1,2,3])
Traceback (most recent call last):
Traceback (most recent call last):
ValueError: too many values to unpack
ValueError: too many values to unpack
>>> unpack_comp([1])
Traceback (most recent call last):
ValueError: need more than 1 values to unpack
>>> unpack_expr([1,2])
>>> unpack_expr([1,2])
(1,
2
)
(1,
4
)
>>> unpack_expr([1,2,3])
>>> unpack_expr([1,2,3])
Traceback (most recent call last):
Traceback (most recent call last):
ValueError: too many values to unpack
ValueError: too many values to unpack
>>> unpack_expr([1])
Traceback (most recent call last):
ValueError: need more than 1 values to unpack
"""
"""
def
unpack_normal
(
l
):
def
unpack_normal
(
l
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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