summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-04-16 00:30:00 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-04-16 00:30:00 (GMT)
commit1b28088fd35938cae197fbdf673aac995ecb1ab5 (patch)
tree2db6ad2b98b14de340627847b108de7377d67abd /Doc/tutorial
parentaef3027aaf0e68a385b549c752a75f7fb54dec57 (diff)
parentfc1020d39603418b1c10a5a68b4a195133b4b955 (diff)
downloadcpython-1b28088fd35938cae197fbdf673aac995ecb1ab5.zip
cpython-1b28088fd35938cae197fbdf673aac995ecb1ab5.tar.gz
cpython-1b28088fd35938cae197fbdf673aac995ecb1ab5.tar.bz2
Merge #20874 fix.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/interpreter.rst17
1 files changed, 8 insertions, 9 deletions
diff --git a/Doc/tutorial/interpreter.rst b/Doc/tutorial/interpreter.rst
index 4df7368..5c23ad7 100644
--- a/Doc/tutorial/interpreter.rst
+++ b/Doc/tutorial/interpreter.rst
@@ -35,15 +35,14 @@ Windows) at the primary prompt causes the interpreter to exit with a zero exit
status. If that doesn't work, you can exit the interpreter by typing the
following command: ``quit()``.
-The interpreter's line-editing features usually aren't very sophisticated. On
-Unix, whoever installed the interpreter may have enabled support for the GNU
-readline library, which adds more elaborate interactive editing and history
-features. Perhaps the quickest check to see whether command line editing is
-supported is typing Control-P to the first Python prompt you get. If it beeps,
-you have command line editing; see Appendix :ref:`tut-interacting` for an
-introduction to the keys. If nothing appears to happen, or if ``^P`` is echoed,
-command line editing isn't available; you'll only be able to use backspace to
-remove characters from the current line.
+The interpreter's line-editing features include interactive editing, history
+substitution and code completion on systems that support readline. Perhaps the
+quickest check to see whether command line editing is supported is typing
+Control-P to the first Python prompt you get. If it beeps, you have command
+line editing; see Appendix :ref:`tut-interacting` for an introduction to the
+keys. If nothing appears to happen, or if ``^P`` is echoed, command line
+editing isn't available; you'll only be able to use backspace to remove
+characters from the current line.
The interpreter operates somewhat like the Unix shell: when called with standard
input connected to a tty device, it reads and executes commands interactively;