]> granicus.if.org Git - python/commitdiff
Fix thinko in a comment about seeking with a file object.
authorFred Drake <fdrake@acm.org>
Tue, 16 Oct 2001 03:25:00 +0000 (03:25 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 16 Oct 2001 03:25:00 +0000 (03:25 +0000)
Reported by Francesco Trentini.

Doc/tut/tut.tex

index 3ee9127c822acbfd422ba94d95b2cbfd898b9fe3..9b76110d41c00dbe34c4f38241f64d8541044d4b 100644 (file)
@@ -2873,7 +2873,7 @@ using the beginning of the file as the reference point.
 \begin{verbatim}
 >>> f=open('/tmp/workfile', 'r+')
 >>> f.write('0123456789abcdef')
->>> f.seek(5)     # Go to the 5th byte in the file
+>>> f.seek(5)     # Go to the 6th byte in the file
 >>> f.read(1)        
 '5'
 >>> f.seek(-3, 2) # Go to the 3rd byte before the end