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
0cd778f2
Commit
0cd778f2
authored
Oct 28, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more tests for callargs
parent
7b7094c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
tests/run/callargs.pyx
tests/run/callargs.pyx
+14
-1
No files found.
tests/run/callargs.pyx
View file @
0cd778f2
...
@@ -90,8 +90,21 @@ __doc__ = u"""
...
@@ -90,8 +90,21 @@ __doc__ = u"""
>>> test_int_kwargs(h)
>>> test_int_kwargs(h)
Traceback (most recent call last):
Traceback (most recent call last):
TypeError: h() keywords must be strings
TypeError: h() keywords must be strings
>>> d()
Traceback (most recent call last):
TypeError: d() takes at least 1 positional argument (0 given)
>>> d(1)
1 1 0 0
>>> d(1,2)
1 2 0 0
>>> d(1,2,3)
1 2 1 0
"""
"""
def
d
(
a
,
b
=
1
,
*
args
,
**
kwds
):
print
a
,
b
,
len
(
args
),
len
(
kwds
)
def
e
(
*
args
,
**
kwargs
):
def
e
(
*
args
,
**
kwargs
):
print
len
(
args
),
len
(
kwargs
)
print
len
(
args
),
len
(
kwargs
)
...
...
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