From ff8480f4ae916ad0a2bff32dd5248e7ed5a586d0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 28 Jan 2011 08:05:28 +0100 Subject: [PATCH] PyTypeTestNode and NoneCheckNode are 'simple' when their argument is --- Cython/Compiler/ExprNodes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 43c7d3ba..03c1a75d 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -7048,6 +7048,9 @@ class PyTypeTestNode(CoercionNode): return False return self.arg.may_be_none() + def is_simple(self): + return self.arg.is_simple() + def result_in_temp(self): return self.arg.result_in_temp() @@ -7098,6 +7101,9 @@ class NoneCheckNode(CoercionNode): def may_be_none(self): return False + def is_simple(self): + return self.arg.is_simple() + def result_in_temp(self): return self.arg.result_in_temp() -- 2.26.2