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
5998c057
Commit
5998c057
authored
Jan 23, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xdecref cleanup of star args only when required
parent
4f25bcf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+2
-0
No files found.
Cython/Compiler/Nodes.py
View file @
5998c057
...
@@ -1352,6 +1352,7 @@ class DefNode(FuncDefNode):
...
@@ -1352,6 +1352,7 @@ class DefNode(FuncDefNode):
nargs
,
nargs
,
star_arg_addr
,
star_arg_addr
,
self
.
error_value
()))
self
.
error_value
()))
self
.
star_arg
.
entry
.
xdecref_cleanup
=
0
elif
self
.
entry
.
signature
.
has_generic_args
:
elif
self
.
entry
.
signature
.
has_generic_args
:
# make sure supernumerous positional arguments do not run
# make sure supernumerous positional arguments do not run
# into keyword-only arguments and provide a more helpful
# into keyword-only arguments and provide a more helpful
...
@@ -1373,6 +1374,7 @@ class DefNode(FuncDefNode):
...
@@ -1373,6 +1374,7 @@ class DefNode(FuncDefNode):
Naming
.
kwdlist_cname
,
Naming
.
kwdlist_cname
,
self
.
arg_address
(
self
.
starstar_arg
),
self
.
arg_address
(
self
.
starstar_arg
),
self
.
reqd_kw_flags_cname
))
self
.
reqd_kw_flags_cname
))
self
.
starstar_arg
.
entry
.
xdecref_cleanup
=
0
elif
self
.
num_required_kw_args
:
elif
self
.
num_required_kw_args
:
handle_error
=
1
handle_error
=
1
code
.
put
(
"if (unlikely(__Pyx_CheckRequiredKeywords(%s, %s, %s) < 0)) "
%
(
code
.
put
(
"if (unlikely(__Pyx_CheckRequiredKeywords(%s, %s, %s) < 0)) "
%
(
...
...
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