From aaeee9d0d1582e4ee68084ac8ed94a3f0b5c99f0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 29 Mar 2009 20:44:11 +0200 Subject: [PATCH] fix GeneralCallNode --- Cython/Compiler/ExprNodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 9fc48a64..f464e9fe 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2596,6 +2596,7 @@ class GeneralCallNode(CallNode): if self.starstar_arg: self.starstar_arg = \ self.starstar_arg.coerce_to_pyobject(env) + function = self.function if function.is_name and function.type_entry: # We are calling an extension type constructor. As long # as we do not support __new__(), the result type is clear @@ -5090,7 +5091,7 @@ class PyTypeTestNode(CoercionNode): def free_temps(self, code): self.arg.free_temps(code) - + class CoerceToPyTypeNode(CoercionNode): # This node is used to convert a C data type -- 2.26.2