This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Mention behavior of seek() on text files
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: jepler, loewis
Priority: normal Keywords: patch

Created on 2003-09-19 22:11 by jepler, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
file-seek-text.patch jepler, 2003-09-19 22:11 doc and docstring patch
file-seek-text.patch-v2 jepler, 2003-09-20 14:55 updated patch
Messages (4)
msg44662 - (view) Author: Jeff Epler (jepler) Date: 2003-09-19 22:11
Document the fact that seek() on text files can lead to
undefined results, rather than leaving the user to read
ftell() docs to find out.  
msg44663 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-09-20 11:07
Logged In: YES 
user_id=21627

what do you mean with

"  :se of other offsets"

???
msg44664 - (view) Author: Jeff Epler (jepler) Date: 2003-09-20 14:55
Logged In: YES 
user_id=2772

":se of other offsets" should have read "Use of other offsets".  Or else it should match the libstdtypes.tex wording, "Other offsets cause undefined behavior."  The patch I'm attaching now says "Use of other offets causes", and copies the docstring warning "not all file objects are seekable" into the tex documentation.
msg44665 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-10-18 09:38
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as

libstdtypes.tex 1.129.8.5
fileobject.c 2.179.8.4
libstdtypes.tex 1.135
fileobject.c 2.185
History
Date User Action Args
2022-04-10 16:11:14adminsetgithub: 39260
2003-09-19 22:11:19jeplercreate