diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-04 18:08:35 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-04 18:08:35 (GMT) |
commit | 1a6cb30a346ba8812d6abc77fddee636ae06ccff (patch) | |
tree | 3ba3f519e8e29fd616365fec41803795ba406bf3 /Doc/library/sys.rst | |
parent | 4c14b5de1cf372e963a4378fc6cb2bca36d24eb8 (diff) | |
download | cpython-1a6cb30a346ba8812d6abc77fddee636ae06ccff.zip cpython-1a6cb30a346ba8812d6abc77fddee636ae06ccff.tar.gz cpython-1a6cb30a346ba8812d6abc77fddee636ae06ccff.tar.bz2 |
Issue #5845: Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__.
(original patch by Éric Araujo)
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r-- | Doc/library/sys.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 5f8399f..a405a30 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -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 |