File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -1070,16 +1070,26 @@ as internal buffering of data.
1070
1070
SEEK_CUR
1071
1071
SEEK_END
1072
1072
1073
- Parameters to the :func: `lseek ` function. Their values are 0, 1, and 2,
1074
- respectively.
1073
+ Parameters to the :func: `lseek ` function and the :meth: `~io.IOBase.seek `
1074
+ method on :term: `file-like objects <file object> `,
1075
+ for whence to adjust the file position indicator.
1076
+
1077
+ :const: `SEEK_SET `
1078
+ Adjust the file position relative to the beginning of the file.
1079
+ :const: `SEEK_CUR `
1080
+ Adjust the file position relative to the current file position.
1081
+ :const: `SEEK_END `
1082
+ Adjust the file position relative to the end of the file.
1083
+
1084
+ Their values are 0, 1, and 2, respectively.
1075
1085
1076
1086
1077
1087
.. data :: SEEK_HOLE
1078
1088
SEEK_DATA
1079
1089
1080
1090
Parameters to the :func: `lseek ` function and the :meth: `~io.IOBase.seek `
1081
- method on file objects, for seeking file data and holes on sparsely
1082
- allocated files.
1091
+ method on :term: ` file-like objects < file object> `,
1092
+ for seeking file data and holes on sparsely allocated files.
1083
1093
1084
1094
:data: `!SEEK_DATA `
1085
1095
Adjust the file offset to the next location containing data,
You can’t perform that action at this time.
0 commit comments