@@ -301,11 +301,11 @@ I/O Base Classes
301301 Note that it's already possible to iterate on file objects using ``for
302302 line in file: ... `` without calling ``file.readlines() ``.
303303
304- .. method :: seek(offset, whence=SEEK_SET )
304+ .. method :: seek(offset[ , whence] )
305305
306306 Change the stream position to the given byte *offset *. *offset * is
307- interpreted relative to the position indicated by *whence *. Values for
308- *whence * are:
307+ interpreted relative to the position indicated by *whence *. The default
308+ value for * whence * is :data: ` SEEK_SET `. Values for *whence * are:
309309
310310 * :data: `SEEK_SET ` or ``0 `` -- start of the stream (the default);
311311 *offset * should be zero or positive
@@ -760,10 +760,11 @@ Text I/O
760760
761761 If *size * is specified, at most *size * characters will be read.
762762
763- .. method :: seek(offset, whence=SEEK_SET )
763+ .. method :: seek(offset[ , whence] )
764764
765- Change the stream position to the given *offset *. Behaviour depends
766- on the *whence * parameter:
765+ Change the stream position to the given *offset *. Behaviour depends on
766+ the *whence * parameter. The default value for *whence * is
767+ :data: `SEEK_SET `.
767768
768769 * :data: `SEEK_SET ` or ``0 ``: seek from the start of the stream
769770 (the default); *offset * must either be a number returned by
0 commit comments