@@ -1294,8 +1294,8 @@ as internal buffering of data.
12941294
12951295 This function is intended for low-level I/O. For normal usage, use the
12961296 built-in function :func: `open `, which returns a :term: `file object ` with
1297- :meth: `~file. read ` and :meth: `~file. write ` methods (and many more). To
1298- wrap a file descriptor in a file object, use :func: `fdopen `.
1297+ :meth: `~io.BufferedIOBase. read ` and :meth: `~io.BufferedIOBase. write ` methods.
1298+ To wrap a file descriptor in a file object, use :func: `fdopen `.
12991299
13001300 .. versionchanged :: 3.3
13011301 Added the *dir_fd * parameter.
@@ -1670,7 +1670,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
16701670 descriptor as returned by :func: `os.open ` or :func: `pipe `. To read a
16711671 "file object" returned by the built-in function :func: `open ` or by
16721672 :func: `popen ` or :func: `fdopen `, or :data: `sys.stdin `, use its
1673- :meth: `~file. read ` or :meth: `~file .readline ` methods.
1673+ :meth: `~io.TextIOBase. read ` or :meth: `~io.IOBase .readline ` methods.
16741674
16751675 .. versionchanged :: 3.5
16761676 If the system call is interrupted and the signal handler does not raise an
@@ -1905,7 +1905,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
19051905 descriptor as returned by :func: `os.open ` or :func: `pipe `. To write a "file
19061906 object" returned by the built-in function :func: `open ` or by :func: `popen ` or
19071907 :func: `fdopen `, or :data: `sys.stdout ` or :data: `sys.stderr `, use its
1908- :meth: `~file .write ` method.
1908+ :meth: `~io.TextIOBase .write ` method.
19091909
19101910 .. versionchanged :: 3.5
19111911 If the system call is interrupted and the signal handler does not raise an
@@ -4720,7 +4720,7 @@ to be ignored.
47204720 The current process is replaced immediately. Open file objects and
47214721 descriptors are not flushed, so if there may be data buffered
47224722 on these open files, you should flush them using
4723- :func: `sys.stdout .flush ` or :func: `os.fsync ` before calling an
4723+ :func: `~io.IOBase .flush ` or :func: `os.fsync ` before calling an
47244724 :func: `exec\* <execl> ` function.
47254725
47264726 The "l" and "v" variants of the :func: `exec\* <execl> ` functions differ in how
0 commit comments