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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
cf7d7053
Commit
cf7d7053
authored
Nov 27, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for #408
parent
7ab3978c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/cfunc_call_tuple_args_T408.pyx
tests/run/cfunc_call_tuple_args_T408.pyx
+17
-0
No files found.
tests/bugs.txt
View file @
cf7d7053
...
...
@@ -7,3 +7,4 @@ numpy_ValueError_T172
unsignedbehaviour_T184
missing_baseclass_in_predecl_T262
tp_new_T454
cfunc_call_tuple_args_T408
tests/run/cfunc_call_tuple_args_T408.pyx
0 → 100644
View file @
cf7d7053
__doc__
=
"""
>>> call_with_tuple(1, 1.2, 'test', [1,2,3])
(1, 1.2, 'test', [1, 2, 3])
>>> call_with_list(1, 1.2, None, None)
(1, 1.2, None, None)
"""
cdef
c_function
(
int
a
,
float
b
,
c
,
list
d
):
return
a
,
b
,
c
,
d
def
call_with_tuple
(
*
args
):
return
c_function
(
*
args
)
def
call_with_list
(
*
args
):
args
=
list
(
args
)
return
c_function
(
*
args
)
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