Logo Search packages:      
Sourcecode: ipython version File versions  Download package

def IPython::frontend::prefilterfrontend::PrefilterFrontEnd::_get_completion_text (   self,
  line 
) [private]

Returns the text to be completed by breaking the line at specified
delimiters.

Definition at line 272 of file prefilterfrontend.py.

00272                                         :
        """ Returns the text to be completed by breaking the line at specified
        delimiters.
        """
        # Break at: spaces, '=', all parentheses (except if balanced).
        # FIXME2: In the future, we need to make the implementation similar to
        # that in the 'pyreadline' module (modes/basemode.py) where we break at
        # each delimiter and try to complete the residual line, until we get a
        # successful list of completions.
        expression = '\s|=|,|:|\((?!.*\))|\[(?!.*\])|\{(?!.*\})' 
        complete_sep = re.compile(expression)
        text = complete_sep.split(line)[-1]
        return text



Generated by  Doxygen 1.6.0   Back to index