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
2f2fa55c
Commit
2f2fa55c
authored
Jul 07, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial fix for #307, see ticket
parent
a5df7a5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+4
-0
tests/errors/callingnonexisting_T307.pyx
tests/errors/callingnonexisting_T307.pyx
+5
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
2f2fa55c
...
...
@@ -2578,6 +2578,9 @@ class GeneralCallNode(CallNode):
if
self
.
starstar_arg
:
self
.
starstar_arg
.
analyse_types
(
env
)
if
not
self
.
function
.
type
.
is_pyobject
:
if
self
.
function
.
type
.
is_error
:
self
.
type
=
error_type
return
error_type
if
hasattr
(
self
.
function
,
'entry'
)
and
not
self
.
function
.
entry
.
as_variable
:
error
(
self
.
pos
,
"Keyword arguments not allowed in cdef functions."
)
else
:
...
...
@@ -2592,6 +2595,7 @@ class GeneralCallNode(CallNode):
self
.
is_temp
=
1
def
generate_result_code
(
self
,
code
):
if
self
.
type
.
is_error
:
return
if
self
.
keyword_args
and
self
.
starstar_arg
:
code
.
put_error_if_neg
(
self
.
pos
,
"PyDict_Update(%s, %s)"
%
(
...
...
tests/errors/callingnonexisting_T307.pyx
0 → 100644
View file @
2f2fa55c
nonexisting
(
3
,
with_kw_arg
=
4
)
_ERRORS
=
u"""
1:11: undeclared name not builtin: nonexisting
"""
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