diff options
author | Guido van Rossum <guido@python.org> | 1997-11-25 21:12:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-11-25 21:12:27 (GMT) |
commit | ee9f820cf118d2b88a74fe35b3f7e9476ea40b1b (patch) | |
tree | 4eedbc7f694784f2717ad68779a5417d6fc80fad /Doc | |
parent | ddc3fb573429a40ac7c80088edf25ee19f7a5265 (diff) | |
download | cpython-ee9f820cf118d2b88a74fe35b3f7e9476ea40b1b.zip cpython-ee9f820cf118d2b88a74fe35b3f7e9476ea40b1b.tar.gz cpython-ee9f820cf118d2b88a74fe35b3f7e9476ea40b1b.tar.bz2 |
Documented brand new behavior of sys.ps1 and sys.ps2 (str() is applied
to get the actual prompt).
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libsys.tex | 5 | ||||
-rw-r--r-- | Doc/libsys.tex | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex index 1e256af..46c0186 100644 --- a/Doc/lib/libsys.tex +++ b/Doc/lib/libsys.tex @@ -167,7 +167,10 @@ where \emph{VER} is equal to \code{sys.version[:3]}. Strings specifying the primary and secondary prompt of the interpreter. These are only defined if the interpreter is in 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} \begin{funcdesc}{setcheckinterval}{interval} diff --git a/Doc/libsys.tex b/Doc/libsys.tex index 1e256af..46c0186 100644 --- a/Doc/libsys.tex +++ b/Doc/libsys.tex @@ -167,7 +167,10 @@ where \emph{VER} is equal to \code{sys.version[:3]}. Strings specifying the primary and secondary prompt of the interpreter. These are only defined if the interpreter is in 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} \begin{funcdesc}{setcheckinterval}{interval} |