mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Patch #809535: Mention behaviour of seek on text files. Backported to 2.3.
This commit is contained in:
parent
ad3fc44ccb
commit
849a972f35
2 changed files with 9 additions and 2 deletions
|
@ -1613,7 +1613,9 @@ PyDoc_STRVAR(seek_doc,
|
|||
"0 (offset from start of file, offset should be >= 0); other values are 1\n"
|
||||
"(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"
|
||||
"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.");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue