[Python-checkins] python/dist/src/Objects fileobject.c,2.184,2.185

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sat Oct 18 05:38:04 EDT 2003


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv13120/Objects

Modified Files:
	fileobject.c 
Log Message:
Patch #809535: Mention behaviour of seek on text files. Backported to 2.3.


Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.184
retrieving revision 2.185
diff -C2 -d -r2.184 -r2.185
*** fileobject.c	12 Oct 2003 19:09:37 -0000	2.184
--- fileobject.c	18 Oct 2003 09:38:01 -0000	2.185
***************
*** 1614,1618 ****
  "(move relative to current position, positive or negative), and 2 (move\n"
  "relative to end of file, usually negative, although many platforms allow\n"
! "seeking beyond the end of a file).\n"
  "\n"
  "Note that not all file objects are seekable.");
--- 1614,1620 ----
  "(move relative to current position, positive or negative), and 2 (move\n"
  "relative to end of file, usually negative, although many platforms allow\n"
! "seeking beyond the end of a file).  If the file is opened in text mode,\n"
! "only offsets returned by tell() are legal.  Use of other offsets causes\n"
! "undefined behavior."
  "\n"
  "Note that not all file objects are seekable.");





More information about the Python-checkins mailing list