[Python-checkins] CVS: python/dist/src/Doc/tut tut.tex,1.100.2.4,1.100.2.5
Fred L. Drake
fdrake@weyr.cnri.reston.va.us
Mon, 21 Feb 2000 23:34:32 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Doc/tut
In directory weyr:/home/fdrake/projects/python/Doc-152p1/tut
Modified Files:
Tag: release152p1-patches
tut.tex
Log Message:
When introducing if statements, don't use:
# [Code which sets 'x' to a value...]
to indicate that x should be set; set it! This confusion was
indicated in a question to python-docs from
<constantina.s@virginnet.co.uk>.
Index: tut.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.100.2.4
retrieving revision 1.100.2.5
diff -C2 -r1.100.2.4 -r1.100.2.5
*** tut.tex 2000/02/21 17:21:18 1.100.2.4
--- tut.tex 2000/02/22 04:34:28 1.100.2.5
***************
*** 913,917 ****
\begin{verbatim}
! >>> # [Code which sets 'x' to a value...]
>>> if x < 0:
... x = 0
--- 913,918 ----
\begin{verbatim}
! >>> import random
! >>> x = random.choice([-1, 0, 1, 2])
>>> if x < 0:
... x = 0