Commit c2a7ee90 authored by Stefan Behnel's avatar Stefan Behnel

partial backport from cython-unstable: keep Python literals from loosing their...

partial backport from cython-unstable: keep Python literals from loosing their type during type analysis
parent 31b438e2
...@@ -748,12 +748,13 @@ class PyConstNode(AtomicNewTempExprNode): ...@@ -748,12 +748,13 @@ class PyConstNode(AtomicNewTempExprNode):
# Abstract base class for constant Python values. # Abstract base class for constant Python values.
is_literal = 1 is_literal = 1
type = py_object_type
def is_simple(self): def is_simple(self):
return 1 return 1
def analyse_types(self, env): def analyse_types(self, env):
self.type = py_object_type pass
def calculate_result_code(self): def calculate_result_code(self):
return self.value return self.value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment