support StringNode in compile time expressions
authorStefan Behnel <scoder@users.berlios.de>
Sat, 10 Oct 2009 09:57:34 +0000 (11:57 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 10 Oct 2009 09:57:34 +0000 (11:57 +0200)
Cython/Compiler/ExprNodes.py

index cff1904ad87d919d16611a50075fd3392ed7c5a4..4c12f1cb7cabd11c22c9ae12eee9d631de32052b 100644 (file)
@@ -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):