@@ -1297,8 +1297,8 @@ as internal buffering of data.
12971297
12981298 This function is intended for low-level I/O. For normal usage, use the
12991299 built-in function :func: `open `, which returns a :term: `file object ` with
1300- :meth: `~file. read ` and :meth: `~file. write ` methods (and many more). To
1301- wrap a file descriptor in a file object, use :func: `fdopen `.
1300+ :meth: `~io.BufferedIOBase. read ` and :meth: `~io.BufferedIOBase. write ` methods.
1301+ To wrap a file descriptor in a file object, use :func: `fdopen `.
13021302
13031303 .. versionchanged :: 3.3
13041304 Added the *dir_fd * parameter.
@@ -1652,7 +1652,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
16521652 descriptor as returned by :func: `os.open ` or :func: `pipe `. To read a
16531653 "file object" returned by the built-in function :func: `open ` or by
16541654 :func: `popen ` or :func: `fdopen `, or :data: `sys.stdin `, use its
1655- :meth: `~file. read ` or :meth: `~file .readline ` methods.
1655+ :meth: `~io.TextIOBase. read ` or :meth: `~io.IOBase .readline ` methods.
16561656
16571657 .. versionchanged :: 3.5
16581658 If the system call is interrupted and the signal handler does not raise an
@@ -1887,7 +1887,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
18871887 descriptor as returned by :func: `os.open ` or :func: `pipe `. To write a "file
18881888 object" returned by the built-in function :func: `open ` or by :func: `popen ` or
18891889 :func: `fdopen `, or :data: `sys.stdout ` or :data: `sys.stderr `, use its
1890- :meth: `~file .write ` method.
1890+ :meth: `~io.TextIOBase .write ` method.
18911891
18921892 .. versionchanged :: 3.5
18931893 If the system call is interrupted and the signal handler does not raise an
@@ -4326,7 +4326,7 @@ to be ignored.
43264326 The current process is replaced immediately. Open file objects and
43274327 descriptors are not flushed, so if there may be data buffered
43284328 on these open files, you should flush them using
4329- :func: `sys.stdout .flush ` or :func: `os.fsync ` before calling an
4329+ :func: `~io.IOBase .flush ` or :func: `os.fsync ` before calling an
43304330 :func: `exec\* <execl> ` function.
43314331
43324332 The "l" and "v" variants of the :func: `exec\* <execl> ` functions differ in how
0 commit comments