[Python-checkins] CVS: python/dist/src/Doc/tut tut.tex,1.100.2.7,1.100.2.8
Fred L. Drake
python-dev@python.org
Tue, 21 Mar 2000 14:30:02 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Doc/tut
In directory weyr:/home/fdrake/projects/python/Doc-152p2/tut
Modified Files:
Tag: release152p1-patches
tut.tex
Log Message:
Minor improvements suggested by Ka-Ping Yee <ping@lfw.org>.
Index: tut.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.100.2.7
retrieving revision 1.100.2.8
diff -C2 -r1.100.2.7 -r1.100.2.8
*** tut.tex 2000/03/20 14:49:23 1.100.2.7
--- tut.tex 2000/03/21 19:29:59 1.100.2.8
***************
*** 236,241 ****
\emph{interactive mode}. In this mode it prompts for the next command
with the \emph{primary prompt}, usually three greater-than signs
! (\samp{>>> }); for continuation lines it prompts with the
! \emph{secondary prompt}, by default three dots (\samp{... }).
The interpreter prints a welcome message stating its version number
and a copyright notice before printing the first prompt, e.g.:
--- 236,241 ----
\emph{interactive mode}. In this mode it prompts for the next command
with the \emph{primary prompt}, usually three greater-than signs
! (\samp{>>>~}); for continuation lines it prompts with the
! \emph{secondary prompt}, by default three dots (\samp{...~}).
The interpreter prints a welcome message stating its version number
and a copyright notice before printing the first prompt, e.g.:
***************
*** 338,342 ****
In the following examples, input and output are distinguished by the
! presence or absence of prompts (\samp{>>> } and \samp{... }): to repeat
the example, you must type everything after the prompt, when the
prompt appears; lines that do not begin with a prompt are output from
--- 338,342 ----
In the following examples, input and output are distinguished by the
! presence or absence of prompts (\samp{>>>~} and \samp{...~}): to repeat
the example, you must type everything after the prompt, when the
prompt appears; lines that do not begin with a prompt are output from
***************
*** 406,410 ****
900
\end{verbatim}
! %
A value can be assigned to several variables simultaneously:
--- 406,410 ----
900
\end{verbatim}
!
A value can be assigned to several variables simultaneously:
***************
*** 621,624 ****
--- 621,634 ----
File "<stdin>", line 1, in ?
TypeError: object doesn't support slice assignment
+ \end{verbatim}
+
+ However, creating a new string with the combined content is easy and
+ efficient:
+
+ \begin{verbatim}
+ >>> 'x' + word[1:]
+ 'xelpA'
+ >>> 'Splat' + word[-1:]
+ 'SplatA'
\end{verbatim}