Commit 57c404e6 authored by Stefan Behnel's avatar Stefan Behnel

Use the correct caching check for builtin names: builtin+const.

parent 77b766fe
......@@ -1922,7 +1922,7 @@ class NameNode(AtomicExprNode):
self.entry = env.lookup(self.name)
if not self.entry:
self.entry = env.declare_builtin(self.name, self.pos)
if self.entry and self.entry.is_builtin and Options.cache_builtins:
if self.entry and self.entry.is_builtin and self.entry.is_const:
self.is_literal = True
if not self.entry:
self.type = PyrexTypes.error_type
......
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