We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 665fd72 commit 7fceb6fCopy full SHA for 7fceb6f
bpython/repl.py
@@ -517,10 +517,16 @@ def complete(self, tab=False):
517
if not self.argspec:
518
return False
519
else:
520
+# unless the first character is a _ filter out all attributes starting with a _
521
+ if not cw.split('.')[-1].startswith('_'):
522
+ matches = [match for match in matches if not
523
+ match.split('.')[-1].startswith('_')]
524
+
525
# remove duplicates and restore order
526
self.matches = sorted(set(matches), self.cmp_matches,
527
self.key_matches)
528
529
530
if len(self.matches) == 1 and not OPTS.auto_display_list:
531
self.list_win_visible = True
532
self.tab()
0 commit comments