diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-08-17 20:38:19 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-08-17 20:38:19 -0400 |
commit | 355d6e90f2c04f1c0b7c0b6a3b7162bc04fd413a (patch) | |
tree | 239ee0cf2504a1155a6e236f90cec2a26c9d0d01 /Doc/library/io.rst | |
parent | 81ba0dc2b139d06b8bd073ed10adcbfda214794d (diff) | |
parent | 7187b85a913adf71be9724ab8c80986bdbde342f (diff) | |
download | cpython-355d6e90f2c04f1c0b7c0b6a3b7162bc04fd413a.tar.gz |
Merge #15694: Link discussion of file objects to glossary entry.
This is analogous to the link for `flie objects` in the description of
'open' that exists in the 2.7 docs, and adds a similar link to the
io docs.
Patch by Chris Jerdonek.
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r-- | Doc/library/io.rst | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 3a8ddd00d0..e83e55ca55 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -16,11 +16,15 @@ Overview -------- -The :mod:`io` module provides Python's main facilities for dealing for various -types of I/O. There are three main types of I/O: *text I/O*, *binary I/O*, *raw -I/O*. These are generic categories, and various backing stores can be used for -each of them. Concrete objects belonging to any of these categories will often -be called *streams*; another common term is *file-like objects*. +.. index:: + single: file object; io module + +The :mod:`io` module provides Python's main facilities for dealing with various +types of I/O. There are three main types of I/O: *text I/O*, *binary I/O* +and *raw I/O*. These are generic categories, and various backing stores can +be used for each of them. A concrete object belonging to any of these +categories is called a :term:`file object`. Other common terms are *stream* +and *file-like object*. Independently of its category, each concrete stream object will also have various capabilities: it can be read-only, write-only, or read-write. It can |