Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 30705:3ff03446f362 legacy-trunk
Patch #809535: Mention behaviour of seek on text files. Backported to 2.3.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 18 Oct 2003 09:38:01 +0000 |
| parents | 1345c23a0591 |
| children | 9e21e56bf5f3 |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Fri Oct 17 22:13:16 2003 +0000 +++ b/Doc/lib/libstdtypes.tex Sat Oct 18 09:38:01 2003 +0000 @@ -1337,7 +1337,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}{}
