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
Kirill Smelkov
cython
Commits
ec95d13d
Commit
ec95d13d
authored
May 23, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend test.
parent
e7c7730c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tests/run/type_inference.pyx
tests/run/type_inference.pyx
+3
-2
No files found.
tests/run/type_inference.pyx
View file @
ec95d13d
...
...
@@ -292,11 +292,12 @@ def unpacking(x):
"""
>>> unpacking(0)
"""
a
,
b
,
c
,
d
=
x
,
1
,
2.0
,
[
3
]
a
,
b
,
c
,
(
d
,
e
)
=
x
,
1
,
2.0
,
[
3
,
[
5
,
6
]
]
assert
typeof
(
a
)
==
"Python object"
,
typeof
(
a
)
assert
typeof
(
b
)
==
"long"
,
typeof
(
b
)
assert
typeof
(
c
)
==
"double"
,
typeof
(
c
)
assert
typeof
(
d
)
==
"list object"
,
typeof
(
d
)
assert
typeof
(
d
)
==
"long"
,
typeof
(
d
)
assert
typeof
(
e
)
==
"list object"
,
typeof
(
e
)
def
star_unpacking
(
*
x
):
...
...
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