Commit 43bdeb03 authored by Stefan Behnel's avatar Stefan Behnel

Set "entry.qualified_name" for builtin types.

Fixes GH-2811.
parent 9f7247e7
......@@ -1241,12 +1241,14 @@ class ModuleScope(Scope):
entry.is_builtin = 1
entry.is_const = 1 # cached
entry.name = name
entry.qualified_name = '__builtin__.' + name
entry.cname = Naming.builtin_prefix + name
self.cached_builtins.append(entry)
self.undeclared_cached_builtins.append(entry)
else:
entry.is_builtin = 1
entry.name = name
entry.qualified_name = '__builtin__.' + name
return entry
def find_module(self, module_name, pos, relative_level=-1):
......
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