projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95faf8a
)
preparing a function default argument needs a GIVEREF
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 22 Feb 2009 12:11:03 +0000
(13:11 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 22 Feb 2009 12:11:03 +0000
(13:11 +0100)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 629270dc35358803ff80c2ac1f81a63b1b8d6602..01eb070afdef7ee165075e8f5fa5f842bfbd3c58 100644
(file)
--- a/
Cython/Compiler/Nodes.py
+++ b/
Cython/Compiler/Nodes.py
@@
-1240,6
+1240,7
@@
class FuncDefNode(StatNode, BlockNode):
code.putln(
"%s = 0;" %
default.result())
+ code.put_giveref(arg.default_entry.cname)
default.free_temps(code)
# For Python class methods, create and store function object
if self.assmt: