summaryrefslogtreecommitdiff
path: root/Doc/using
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-04 20:08:35 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-04 20:08:35 +0200
commit1a6cb30a346ba8812d6abc77fddee636ae06ccff (patch)
tree3ba3f519e8e29fd616365fec41803795ba406bf3 /Doc/using
parent4c14b5de1cf372e963a4378fc6cb2bca36d24eb8 (diff)
downloadcpython-git-1a6cb30a346ba8812d6abc77fddee636ae06ccff.tar.gz
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/using')
-rw-r--r--Doc/using/cmdline.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 185852a84b..fa01ea1e13 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -147,7 +147,12 @@ source.
If no interface option is given, :option:`-i` is implied, ``sys.argv[0]`` is
an empty string (``""``) and the current directory will be added to the
-start of :data:`sys.path`.
+start of :data:`sys.path`. Also, tab-completion and history editing is
+automatically enabled, if available on your platform (see
+:ref:`rlcompleter-config`).
+
+.. versionchanged:: 3.4
+ Automatic enabling of tab-completion and history editing.
.. seealso:: :ref:`tut-invoking`
@@ -438,7 +443,7 @@ conflict.
is executed in the same namespace where interactive commands are executed so
that objects defined or imported in it can be used without qualification in
the interactive session. You can also change the prompts :data:`sys.ps1` and
- :data:`sys.ps2` in this file.
+ :data:`sys.ps2` and the hook :data:`sys.__interactivehook__` in this file.
.. envvar:: PYTHONY2K