projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdb6df8
)
PyTypeTestNode and NoneCheckNode are 'simple' when their argument is
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 28 Jan 2011 07:05:28 +0000
(08:05 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 28 Jan 2011 07:05:28 +0000
(08:05 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 43c7d3ba3337b727a5b55f3240476d79c43d480e..03c1a75d1dab4b1fa93c500442aa1fc13cf2d4b4 100755
(executable)
--- 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()