@@ -767,10 +767,10 @@ Class instances
767767 Special attributes: :attr: `__dict__ ` is the attribute dictionary;
768768 :attr: `__class__ ` is the instance's class.
769769
770- Files
770+ I/O objects (also known as file objects)
771771 .. index ::
772- object: file
773772 builtin: open
773+ module: io
774774 single: popen() (in module os)
775775 single: makefile() (socket method)
776776 single: sys.stdin
@@ -781,14 +781,17 @@ Files
781781 single: stdout (in module sys)
782782 single: stderr (in module sys)
783783
784- A file object represents an open file. File objects are created by the
785- :func: `open ` built-in function, and also by :func: `os.popen `,
786- :func: `os.fdopen `, and the :meth: `makefile ` method of socket objects (and
787- perhaps by other functions or methods provided by extension modules). The
788- objects ``sys.stdin ``, ``sys.stdout `` and ``sys.stderr `` are initialized to
789- file objects corresponding to the interpreter's standard input, output and
790- error streams. See :ref: `bltin-file-objects ` for complete documentation of
791- file objects.
784+ A file object represents an open file. Various shortcuts are available
785+ to create file objects: the :func: `open ` built-in function, and also
786+ :func: `os.popen `, :func: `os.fdopen `, and the :meth: `makefile ` method
787+ of socket objects (and perhaps by other functions or methods provided
788+ by extension modules).
789+
790+ The objects ``sys.stdin ``, ``sys.stdout `` and ``sys.stderr `` are
791+ initialized to file objects corresponding to the interpreter's standard
792+ input, output and error streams; they are all open in text mode and
793+ therefore follow the interface defined by the :class: `io.TextIOBase `
794+ abstract class.
792795
793796Internal types
794797 .. index ::
0 commit comments