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
736bb2e3
Commit
736bb2e3
authored
Feb 23, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do it right this time: call generate_post_assignment_code
parent
52d9fdb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+4
-8
No files found.
Cython/Compiler/Nodes.py
View file @
736bb2e3
...
...
@@ -1234,17 +1234,13 @@ class FuncDefNode(StatNode, BlockNode):
if
not
default
.
is_literal
:
default
.
generate_evaluation_code
(
code
)
default
.
make_owned_reference
(
code
)
if
default
.
is_temp
and
default
.
type
.
is_pyobject
:
cleanup
=
" %s = 0;"
%
default
.
result
()
else
:
cleanup
=
''
code
.
putln
(
"%s = %s;
%s
"
%
(
"%s = %s;"
%
(
arg
.
default_entry
.
cname
,
default
.
result_as
(
arg
.
default_entry
.
type
),
cleanup
))
code
.
put_giveref
(
arg
.
default_entry
.
cname
)
default
.
result_as
(
arg
.
default_entry
.
type
)))
default
.
generate_post_assignment_code
(
code
)
default
.
free_temps
(
code
)
code
.
put_giveref
(
arg
.
default_entry
.
cname
)
# For Python class methods, create and store function object
if
self
.
assmt
:
self
.
assmt
.
generate_execution_code
(
code
)
...
...
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