mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Documented brand new behavior of sys.ps1 and sys.ps2 (str() is applied
to get the actual prompt).
This commit is contained in:
parent
ddc3fb5734
commit
ee9f820cf1
2 changed files with 8 additions and 2 deletions
|
|
@ -167,7 +167,10 @@ where \emph{VER} is equal to \code{sys.version[:3]}.
|
||||||
Strings specifying the primary and secondary prompt of the
|
Strings specifying the primary and secondary prompt of the
|
||||||
interpreter. These are only defined if the interpreter is in
|
interpreter. These are only defined if the interpreter is in
|
||||||
interactive mode. Their initial values in this case are
|
interactive mode. Their initial values in this case are
|
||||||
\code{'>>> '} and \code{'... '}.
|
\code{'>>> '} and \code{'... '}. If a non-string object is assigned
|
||||||
|
to either variable, its \code{str()} is re-evaluated each time the
|
||||||
|
interpreter prepares to read a new interactive command; this can be
|
||||||
|
used to implement a dynamic prompt.
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
||||||
\begin{funcdesc}{setcheckinterval}{interval}
|
\begin{funcdesc}{setcheckinterval}{interval}
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,10 @@ where \emph{VER} is equal to \code{sys.version[:3]}.
|
||||||
Strings specifying the primary and secondary prompt of the
|
Strings specifying the primary and secondary prompt of the
|
||||||
interpreter. These are only defined if the interpreter is in
|
interpreter. These are only defined if the interpreter is in
|
||||||
interactive mode. Their initial values in this case are
|
interactive mode. Their initial values in this case are
|
||||||
\code{'>>> '} and \code{'... '}.
|
\code{'>>> '} and \code{'... '}. If a non-string object is assigned
|
||||||
|
to either variable, its \code{str()} is re-evaluated each time the
|
||||||
|
interpreter prepares to read a new interactive command; this can be
|
||||||
|
used to implement a dynamic prompt.
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
||||||
\begin{funcdesc}{setcheckinterval}{interval}
|
\begin{funcdesc}{setcheckinterval}{interval}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue