You are viewing an older version (9.10.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.10.0 / IPython / core / completer / CompletionSplitter

class

IPython.core.completer:CompletionSplitter

source: /IPython/core/completer.py :906

Signature

class   CompletionSplitter ( delims = None )

Members

Summary

An object to split an input line in a manner similar to readline.

Extended Summary

By having our own implementation, we can expose readline-like completion in a uniform manner to all frontends. This object only needs to be given the line of text to be split and the cursor position on said line, and it returns the 'word' to be completed on at the cursor after splitting the entire line.

What characters are used as splitting delimiters can be controlled by setting the delims attribute (this is a property that internally automatically builds the necessary regular expression)

Aliases

  • IPython.core.completer.CompletionSplitter