diff Doc/libsys.tex @ 6662:fbfcf38d2b39 legacy-trunk

Documented brand new behavior of sys.ps1 and sys.ps2 (str() is applied to get the actual prompt).
author Guido van Rossum <guido@python.org>
date Tue, 25 Nov 1997 21:12:27 +0000
parents a7ea74a27993
children c5bfb1de61a5
line wrap: on
line diff
--- a/Doc/libsys.tex	Tue Nov 25 20:58:13 1997 +0000
+++ b/Doc/libsys.tex	Tue Nov 25 21:12:27 1997 +0000
@@ -167,7 +167,10 @@
   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}