[Python-checkins] cpython (2.7): Clean-up docs for input()
raymond.hettinger
python-checkins at python.org
Thu Feb 2 09:52:42 CET 2012
http://hg.python.org/cpython/rev/98c574ba45fc
changeset: 74721:98c574ba45fc
branch: 2.7
user: Raymond Hettinger <python at rcn.com>
date: Thu Feb 02 00:52:33 2012 -0800
summary:
Clean-up docs for input()
files:
Doc/library/functions.rst | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -592,12 +592,9 @@
Equivalent to ``eval(raw_input(prompt))``.
- .. note::
-
- This function does not catch user errors. It expects a valid Python
- expression as input. If the input is not syntactically valid, a
- :exc:`SyntaxError` will be raised. Other exceptions may be raised if there
- is an error during evaluation.
+ This function does not catch user errors. If the input is not syntactically
+ valid, a :exc:`SyntaxError` will be raised. Other exceptions may be raised if
+ there is an error during evaluation.
If the :mod:`readline` module was loaded, then :func:`input` will use it to
provide elaborate line editing and history features.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list