Kaydet (Commit) 9d9848e7 authored tarafından Georg Brandl's avatar Georg Brandl

Rewrap.

üst c1660769
...@@ -181,22 +181,22 @@ Glossary ...@@ -181,22 +181,22 @@ Glossary
not expressions. not expressions.
extension module extension module
A module written in C or C++, using Python's C API to interact with the core and A module written in C or C++, using Python's C API to interact with the
with user code. core and with user code.
file object file object
An object exposing a file-oriented API (with methods such as An object exposing a file-oriented API (with methods such as
:meth:`read()` or :meth:`write()`) to an underlying resource. :meth:`read()` or :meth:`write()`) to an underlying resource. Depending
Depending on the way it was created, a file object can mediate access on the way it was created, a file object can mediate access to a real
to a real on-disk file or to another other type of storage or on-disk file or to another other type of storage or communication device
communication device (for example standard input/output, in-memory (for example standard input/output, in-memory buffers, sockets, pipes,
buffers, sockets, pipes, etc.). File objects are also called etc.). File objects are also called :dfn:`file-like objects` or
:dfn:`file-like objects` or :dfn:`streams`. :dfn:`streams`.
There are actually three categories of file objects: raw binary There are actually three categories of file objects: raw binary files,
files, buffered binary files and text files. Their interfaces are buffered binary files and text files. Their interfaces are defined in the
defined in the :mod:`io` module. The canonical way to create a :mod:`io` module. The canonical way to create a file object is by using
file object is by using the :func:`open` function. the :func:`open` function.
file-like object file-like object
A synonym for :term:`file object`. A synonym for :term:`file object`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment