[Python-checkins] CVS: python/dist/src/Doc/tut tut.tex,1.150,1.151
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 15 Oct 2001 20:25:02 -0700
Update of /cvsroot/python/python/dist/src/Doc/tut
In directory usw-pr-cvs1:/tmp/cvs-serv15509
Modified Files:
tut.tex
Log Message:
Fix thinko in a comment about seeking with a file object.
Reported by Francesco Trentini.
Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.150
retrieving revision 1.151
diff -C2 -d -r1.150 -r1.151
*** tut.tex 2001/09/21 21:10:05 1.150
--- tut.tex 2001/10/16 03:25:00 1.151
***************
*** 2874,2878 ****
>>> f=open('/tmp/workfile', 'r+')
>>> f.write('0123456789abcdef')
! >>> f.seek(5) # Go to the 5th byte in the file
>>> f.read(1)
'5'
--- 2874,2878 ----
>>> f=open('/tmp/workfile', 'r+')
>>> f.write('0123456789abcdef')
! >>> f.seek(5) # Go to the 6th byte in the file
>>> f.read(1)
'5'