mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #5845: Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__.
(original patch by Éric Araujo)
This commit is contained in:
parent
4c14b5de1c
commit
1a6cb30a34
9 changed files with 143 additions and 165 deletions
|
@ -679,6 +679,16 @@ always available.
|
|||
.. versionadded:: 3.1
|
||||
|
||||
|
||||
.. data:: __interactivehook__
|
||||
|
||||
When present, this function is automatically called (with no arguments)
|
||||
when the interpreter is launched in :ref:`interactive mode <tut-interactive>`.
|
||||
This is done after the :envvar:`PYTHONSTARTUP` file is read, so that you
|
||||
can set this hook there.
|
||||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
|
||||
.. function:: intern(string)
|
||||
|
||||
Enter *string* in the table of "interned" strings and return the interned string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue