projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24f206f
)
support StringNode in compile time expressions
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 Oct 2009 09:57:34 +0000
(11:57 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 Oct 2009 09:57:34 +0000
(11:57 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index cff1904ad87d919d16611a50075fd3392ed7c5a4..4c12f1cb7cabd11c22c9ae12eee9d631de32052b 100644
(file)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-880,6
+880,9
@@
class StringNode(PyConstNode):
def calculate_result_code(self):
return self.result_code
+
+ def compile_time_value(self, env):
+ return self.value
class LongNode(AtomicExprNode):