Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 30704:04bcfdcf290a 2.3
Patch #809535: Mention behaviour of seek on text files.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 18 Oct 2003 09:37:12 +0000 |
| parents | e17c44c79b03 |
| children | be0ca26ad574 |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Thu Oct 16 19:42:13 2003 +0000 +++ b/Doc/lib/libstdtypes.tex Sat Oct 18 09:37:12 2003 +0000 @@ -1345,7 +1345,12 @@ \method{seek()} operations will be undone at the next write. If the file is only opened for writing in append mode (mode \code{'a'}), this method is essentially a no-op, but it remains useful for files - opened in append mode with reading enabled (mode \code{'a+'}). + opened in append mode with reading enabled (mode \code{'a+'}). If the + file is opened in text mode (mode \code{'t'}), only offsets returned + by \method{tell()} are legal. Use of other offsets causes undefined + behavior. + + Note that not all file objects are seekable. \end{methoddesc} \begin{methoddesc}[file]{tell}{}
