Kaydet (Commit) 46bd9a61 authored tarafından Fred Drake's avatar Fred Drake

Do not expose __builtins__ name as a completion; this is an implementation

detail that confuses too many people.  Based on discussion in python-dev.
üst 5b8311e3
......@@ -76,7 +76,7 @@ class Completer:
__builtin__.__dict__.keys(),
__main__.__dict__.keys()]:
for word in list:
if word[:n] == text:
if word[:n] == text and word != "__builtins__":
matches.append(word)
return matches
......@@ -106,7 +106,7 @@ class Completer:
matches = []
n = len(attr)
for word in words:
if word[:n] == attr:
if word[:n] == attr and word != "__builtins__":
matches.append("%s.%s" % (expr, word))
return matches
......
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