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
96fb7ea3
Commit
96fb7ea3
authored
Jan 16, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
de5dbaa0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+4
-3
No files found.
Cython/Compiler/Nodes.py
View file @
96fb7ea3
...
...
@@ -1280,10 +1280,10 @@ class DefNode(FuncDefNode):
return
0
def
generate_stararg_getting_code
(
self
,
code
):
error_return
=
"return %s;"
%
self
.
error_value
()
num_kwonly
=
self
.
num_kwonly_args
fixed_args
=
self
.
entry
.
signature
.
num_fixed_args
()
nargs
=
len
(
self
.
args
)
-
num_kwonly
-
fixed_args
error_return
=
"return %s;"
%
self
.
error_value
()
if
self
.
star_arg
:
star_arg_addr
=
self
.
arg_address
(
self
.
star_arg
)
...
...
@@ -1294,8 +1294,9 @@ class DefNode(FuncDefNode):
star_arg_addr
,
self
.
error_value
()))
elif
self
.
entry
.
signature
.
has_generic_args
:
# provide a more helpful message about supernumerous
# positional arguments than PyArg_ParseTupelAndKeywords()
# make sure supernumerous positional arguments do not run
# into keyword-only arguments and provide a more helpful
# message than PyArg_ParseTupelAndKeywords()
code
.
putln
(
"if (unlikely(PyTuple_GET_SIZE(%s) > %d)) {"
%
(
Naming
.
args_cname
,
nargs
))
error_message
=
"function takes at most %d positional arguments (%d given)"
...
...
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