Commit 777dcc6b authored by Guido van Rossum's avatar Guido van Rossum

Change the description of input() -- it is exactly equivalent to

eval(raw_input(s)).  The statement about breaking a long expression
over multiple lines is no longer true.
parent 4281258b
...@@ -273,11 +273,7 @@ module from which it is called). ...@@ -273,11 +273,7 @@ module from which it is called).
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{input}{\optional{prompt}} \begin{funcdesc}{input}{\optional{prompt}}
Almost equivalent to \code{eval(raw_input(\var{prompt}))}. Like Equivalent to \code{eval(raw_input(\var{prompt}))}.
\function{raw_input()}, the \var{prompt} argument is optional, and the
\module{readline} module is used when loaded. The difference
is that a long input expression may be broken over multiple lines using
the backslash convention.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{intern}{string} \begin{funcdesc}{intern}{string}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment