@@ -1271,8 +1271,8 @@ as internal buffering of data.
12711271
12721272 This function is intended for low-level I/O. For normal usage, use the
12731273 built-in function :func: `open `, which returns a :term: `file object ` with
1274- :meth: `~file. read ` and :meth: `~file. write ` methods (and many more). To
1275- wrap a file descriptor in a file object, use :func: `fdopen `.
1274+ :meth: `~io.BufferedIOBase. read ` and :meth: `~io.BufferedIOBase. write ` methods.
1275+ To wrap a file descriptor in a file object, use :func: `fdopen `.
12761276
12771277 .. versionchanged :: 3.3
12781278 Added the *dir_fd * parameter.
@@ -1626,7 +1626,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
16261626 descriptor as returned by :func: `os.open ` or :func: `pipe `. To read a
16271627 "file object" returned by the built-in function :func: `open ` or by
16281628 :func: `popen ` or :func: `fdopen `, or :data: `sys.stdin `, use its
1629- :meth: `~file. read ` or :meth: `~file .readline ` methods.
1629+ :meth: `~io.TextIOBase. read ` or :meth: `~io.IOBase .readline ` methods.
16301630
16311631 .. versionchanged :: 3.5
16321632 If the system call is interrupted and the signal handler does not raise an
@@ -1815,7 +1815,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
18151815 descriptor as returned by :func: `os.open ` or :func: `pipe `. To write a "file
18161816 object" returned by the built-in function :func: `open ` or by :func: `popen ` or
18171817 :func: `fdopen `, or :data: `sys.stdout ` or :data: `sys.stderr `, use its
1818- :meth: `~file .write ` method.
1818+ :meth: `~io.TextIOBase .write ` method.
18191819
18201820 .. versionchanged :: 3.5
18211821 If the system call is interrupted and the signal handler does not raise an
@@ -4253,7 +4253,7 @@ to be ignored.
42534253 The current process is replaced immediately. Open file objects and
42544254 descriptors are not flushed, so if there may be data buffered
42554255 on these open files, you should flush them using
4256- :func: `sys.stdout .flush ` or :func: `os.fsync ` before calling an
4256+ :func: `~io.IOBase .flush ` or :func: `os.fsync ` before calling an
42574257 :func: `exec\* <execl> ` function.
42584258
42594259 The "l" and "v" variants of the :func: `exec\* <execl> ` functions differ in how
0 commit comments