From: Stefan Behnel Date: Sun, 29 Mar 2009 18:44:11 +0000 (+0200) Subject: fix GeneralCallNode X-Git-Tag: 0.12.alpha0~342 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aaeee9d0d1582e4ee68084ac8ed94a3f0b5c99f0;p=cython.git fix GeneralCallNode --- 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