From af51810bc9144e79d03b001bda3a4ac84ceca878 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 22 Feb 2009 13:11:03 +0100 Subject: [PATCH] preparing a function default argument needs a GIVEREF --- Cython/Compiler/Nodes.py | 1 + 1 file changed, 1 insertion(+) 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: -- 2.26.2