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 @@ -1180,16 +1180,26 @@ as internal buffering of data.
1180
1180
SEEK_CUR
1181
1181
SEEK_END
1182
1182
1183
- Parameters to the :func: `lseek ` function. Their values are 0, 1, and 2,
1184
- respectively.
1183
+ Parameters to the :func: `lseek ` function and the :meth: `~io.IOBase.seek `
1184
+ method on :term: `file-like objects <file object> `,
1185
+ for whence to adjust the file position indicator.
1186
+
1187
+ :const: `SEEK_SET `
1188
+ Adjust the file position relative to the beginning of the file.
1189
+ :const: `SEEK_CUR `
1190
+ Adjust the file position relative to the current file position.
1191
+ :const: `SEEK_END `
1192
+ Adjust the file position relative to the end of the file.
1193
+
1194
+ Their values are 0, 1, and 2, respectively.
1185
1195
1186
1196
1187
1197
.. data :: SEEK_HOLE
1188
1198
SEEK_DATA
1189
1199
1190
1200
Parameters to the :func: `lseek ` function and the :meth: `~io.IOBase.seek `
1191
- method on file objects, for seeking file data and holes on sparsely
1192
- allocated files.
1201
+ method on :term: ` file-like objects < file object> `,
1202
+ for seeking file data and holes on sparsely allocated files.
1193
1203
1194
1204
:data: `!SEEK_DATA `
1195
1205
Adjust the file offset to the next location containing data,
You can’t perform that action at this time.
0 commit comments