Add a glossary entry for file objects.

This commit is contained in:
Antoine Pitrou 2010-09-15 09:58:26 +00:00
parent 5aa0d10560
commit 0b65b0fc83
3 changed files with 21 additions and 4 deletions

View file

@ -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).