MCPcopy Create free account
hub / github.com/ipython/ipython / all_completions

Method all_completions

IPython/core/completer.py:1142–1151  ·  view source on GitHub ↗

Wrapper around the completion methods for the benefit of emacs.

(self, text)

Source from the content-addressed store, hash-verified

1140 ]
1141
1142 def all_completions(self, text) -> List[str]:
1143 """
1144 Wrapper around the completion methods for the benefit of emacs.
1145 """
1146 prefix = text.rpartition('.')[0]
1147 with provisionalcompleter():
1148 return ['.'.join([prefix, c.text]) if prefix and self.use_jedi else c.text
1149 for c in self.completions(text, len(text))]
1150
1151 return self.complete(text)[1]
1152
1153 def _clean_glob(self, text):
1154 return self.glob("%s*" % text)

Callers 1

Calls 3

completionsMethod · 0.95
completeMethod · 0.95
provisionalcompleterFunction · 0.85

Tested by 1