From: Stefan Behnel Date: Sun, 22 Feb 2009 12:11:03 +0000 (+0100) Subject: preparing a function default argument needs a GIVEREF X-Git-Tag: 0.11.rc~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af51810bc9144e79d03b001bda3a4ac84ceca878;p=cython.git preparing a function default argument needs a GIVEREF --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 629270dc..01eb070a 100644 --- 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: