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
656037fc
Commit
656037fc
authored
Jan 24, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for #467
parent
36f75320
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/cascaded_list_unpacking_T467.pyx
tests/run/cascaded_list_unpacking_T467.pyx
+32
-0
No files found.
tests/bugs.txt
View file @
656037fc
...
...
@@ -7,3 +7,4 @@ numpy_ValueError_T172
unsignedbehaviour_T184
missing_baseclass_in_predecl_T262
cfunc_call_tuple_args_T408
cascaded_list_unpacking_T467
tests/run/cascaded_list_unpacking_T467.pyx
0 → 100644
View file @
656037fc
def
simple_parallel_assignment_from_call
():
"""
>>> simple_parallel_assignment_from_call()
(2, 1, 2, 1, 2, 1, 2, [1, 2], [1, 2])
"""
cdef
int
ai
,
bi
cdef
long
al
,
bl
cdef
object
ao
,
bo
cdef
int
side_effect_count
=
call_count
ai
,
bi
=
al
,
bl
=
ao
,
bo
=
c
=
d
=
[
intval
(
1
),
intval
(
2
)]
side_effect_count
=
call_count
-
side_effect_count
return
side_effect_count
,
ao
,
bo
,
ai
,
bi
,
al
,
bl
,
c
,
d
def
recursive_parallel_assignment_from_call
():
"""
>>> recursive_parallel_assignment_from_call()
(3, 1, 2, 3, 1, 2, 3, (1, 2), 3, [(1, 2), 3])
"""
cdef
int
ai
,
bi
,
ci
cdef
object
ao
,
bo
,
co
cdef
int
side_effect_count
=
call_count
(
ai
,
bi
),
ci
=
(
ao
,
bo
),
co
=
t
,
o
=
d
=
[(
intval
(
1
),
intval
(
2
)),
intval
(
3
)]
side_effect_count
=
call_count
-
side_effect_count
return
side_effect_count
,
ao
,
bo
,
co
,
ai
,
bi
,
ci
,
t
,
o
,
d
cdef
int
call_count
=
0
cdef
int
intval
(
int
x
):
global
call_count
call_count
+=
1
return
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