From: Stefan Behnel Date: Sat, 9 Feb 2013 06:44:18 +0000 (+0100) Subject: safety fix X-Git-Tag: 0.19b1~210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6af1821f86a46825e0cfd94f6ea539ce5156ca06;p=platform%2Fupstream%2Fpython-cython.git safety fix --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 96ff69e..73bbd84 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -1398,7 +1398,7 @@ class NameNode(AtomicExprNode): def infer_type(self, env): if self.entry is None: self.entry = env.lookup(self.name) - if self.entry is None: + if self.entry is None or self.entry.type is unspecified_type: return py_object_type elif (self.entry.type.is_extension_type or self.entry.type.is_builtin_type) and \ self.name == self.entry.type.name: