Lines Matching +refs:is +refs:completion +refs:line
11 completion and reading/writing of history files from the Python interpreter.
13 supports completion of Python identifiers at the interactive prompt. Settings
22 On MacOS X the :mod:`readline` module detects which library is being used
25 The configuration file for ``libedit`` is different from that
46 Execute the init line provided in the *string* argument. This calls
52 Execute a readline initialization file. The default filename is the last filename
59 The following functions operate on the line buffer:
64 Return the current contents of the line buffer (:c:data:`rl_line_buffer`
70 Insert text into the line buffer at the cursor position. This calls
78 line buffer. This calls :c:func:`rl_redisplay` in the underlying library.
90 The default filename is :file:`~/.history`. This calls
97 existing file. The default filename is :file:`~/.history`. This calls
128 Return the number of items currently in the history. (This is different from
138 is one-based. This calls :c:func:`history_get` in the underlying library.
146 The position is zero-based. This calls :c:func:`remove_history` in
152 .. function:: replace_history_item(pos, line)
154 Replace history item specified by its position with *line*.
155 The position is zero-based. This calls :c:func:`replace_history_entry`
161 .. function:: add_history(line)
163 Append *line* to the history buffer, as if it was the last line typed.
176 callback of the underlying library. If *function* is specified, it will
178 already installed is removed. The hook is called with no
185 callback of the underlying library. If *function* is specified, it will
187 function already installed is removed. The hook is called
196 The following functions relate to implementing a custom word completion
197 function. This is typically operated by the Tab key, and can suggest and
198 automatically complete a word being typed. By default, Readline is set up
200 the interactive interpreter. If the :mod:`readline` module is to be used
206 Set or remove the completer function. If *function* is specified, it will be
208 function already installed is removed. The completer function is called as
210 returns a non-string value. It should return the next possible completion
213 The installed completer function is invoked by the *entry_func* callback
229 Get the type of completion being attempted. This returns the
238 Get the beginning or ending index of the completion scope.
247 Set or get the word delimiters for completion. These determine the
248 start of the word to be considered for completion (the completion scope).
254 Set or remove the completion display function. If *function* is
255 specified, it will be used as the new completion display function;
256 if omitted or ``None``, any completion display function already
257 installed is removed. This sets or clears the
259 underlying library. The completion display function is called as
281 # default history len is -1 (infinite), which may grow unruly