From: Stefan Behnel Date: Sat, 12 Sep 2009 11:58:42 +0000 (+0200) Subject: partial backport from cython-unstable: keep Python literals from loosing their type... X-Git-Tag: 0.11.3.rc0~12^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c2a7ee90c7e5489f7032eca7cf53155fc3d140c5;p=cython.git partial backport from cython-unstable: keep Python literals from loosing their type during type analysis --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 2b0de0eb..6d649a43 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -748,12 +748,13 @@ class PyConstNode(AtomicNewTempExprNode): # Abstract base class for constant Python values. is_literal = 1 + type = py_object_type def is_simple(self): return 1 def analyse_types(self, env): - self.type = py_object_type + pass def calculate_result_code(self): return self.value