Q: maybe rlcompleter shouldn't expose __builtins__?

May 31, 2000
9:05 a.m.
from comp.lang.python:
Thanks for the info. This choice of name is very confusing, to say the least. I used commandline completion with __buil TAB, and got __builtins__.
a simple way to avoid this problem is to change global_matches in rlcompleter.py so that it doesn't return this name. I suggest changing: if word[:n] == text: to if word[:n] == text and work != "__builtins__": Comments? (should we do a series of double-blind tests first? ;-) </F> "People Propose, Science Studies, Technology Conforms" -- Don Norman
9033
Age (days ago)
9033
Last active (days ago)
1 comments
2 participants
participants (2)
-
Fred L. Drake, Jr.
-
Fredrik Lundh