PyTypeTestNode and NoneCheckNode are 'simple' when their argument is
authorStefan Behnel <scoder@users.berlios.de>
Fri, 28 Jan 2011 07:05:28 +0000 (08:05 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 28 Jan 2011 07:05:28 +0000 (08:05 +0100)
Cython/Compiler/ExprNodes.py

index 43c7d3ba3337b727a5b55f3240476d79c43d480e..03c1a75d1dab4b1fa93c500442aa1fc13cf2d4b4 100755 (executable)
@@ -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()