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:
Antoine Pitrou 2013-05-04 20:08:35 +02:00
parent 4c14b5de1c
commit 1a6cb30a34
9 changed files with 143 additions and 165 deletions

View file

@ -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