From: Stefan Behnel Date: Sat, 10 Oct 2009 09:57:34 +0000 (+0200) Subject: support StringNode in compile time expressions X-Git-Tag: 0.13.beta0~2^2~121^2~90 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c714c5d8729a0e09f01792c19110e328868128df;p=cython.git support StringNode in compile time expressions --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index cff1904a..4c12f1cb 100644 --- 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):