diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-13 20:09:14 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-13 20:09:14 (GMT) |
commit | bfdcd436f0410e2b3eb34ce4fd7411488d3f13fb (patch) | |
tree | 92e02b473c00b7dc9cbe908681723079a3466c7f /Doc/library/fileinput.rst | |
parent | 24201d497cf23d399cceadad8058261c13ae536f (diff) | |
download | cpython-bfdcd436f0410e2b3eb34ce4fd7411488d3f13fb.zip cpython-bfdcd436f0410e2b3eb34ce4fd7411488d3f13fb.tar.gz cpython-bfdcd436f0410e2b3eb34ce4fd7411488d3f13fb.tar.bz2 |
Issue #18758: Fixed and improved cross-references.
Diffstat (limited to 'Doc/library/fileinput.rst')
-rw-r--r-- | Doc/library/fileinput.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst index f8ec436..d5a4875 100644 --- a/Doc/library/fileinput.rst +++ b/Doc/library/fileinput.rst @@ -136,11 +136,12 @@ available for subclassing as well: Class :class:`FileInput` is the implementation; its methods :meth:`filename`, :meth:`fileno`, :meth:`lineno`, :meth:`filelineno`, :meth:`isfirstline`, - :meth:`isstdin`, :meth:`nextfile` and :meth:`close` correspond to the functions - of the same name in the module. In addition it has a :meth:`readline` method - which returns the next input line, and a :meth:`__getitem__` method which - implements the sequence behavior. The sequence must be accessed in strictly - sequential order; random access and :meth:`readline` cannot be mixed. + :meth:`isstdin`, :meth:`nextfile` and :meth:`close` correspond to the + functions of the same name in the module. In addition it has a + :meth:`~io.TextIOBase.readline` method which returns the next input line, + and a :meth:`__getitem__` method which implements the sequence behavior. + The sequence must be accessed in strictly sequential order; random access + and :meth:`~io.TextIOBase.readline` cannot be mixed. With *mode* you can specify which file mode will be passed to :func:`open`. It must be one of ``'r'``, ``'rU'``, ``'U'`` and ``'rb'``. |