mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Add a glossary entry for file objects.
This commit is contained in:
parent
5aa0d10560
commit
0b65b0fc83
3 changed files with 21 additions and 4 deletions
|
|
@ -781,9 +781,9 @@ I/O objects (also known as file objects)
|
|||
single: stdout (in module sys)
|
||||
single: stderr (in module sys)
|
||||
|
||||
A file object represents an open file. Various shortcuts are available
|
||||
to create file objects: the :func:`open` built-in function, and also
|
||||
:func:`os.popen`, :func:`os.fdopen`, and the :meth:`makefile` method
|
||||
A :term:`file object` represents an open file. Various shortcuts are
|
||||
available to create file objects: the :func:`open` built-in function, and
|
||||
also :func:`os.popen`, :func:`os.fdopen`, and the :meth:`makefile` method
|
||||
of socket objects (and perhaps by other functions or methods provided
|
||||
by extension modules).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue