summaryrefslogtreecommitdiffstats
path: root/Doc/library/fileinput.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-13 20:09:14 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-13 20:09:14 (GMT)
commitbfdcd436f0410e2b3eb34ce4fd7411488d3f13fb (patch)
tree92e02b473c00b7dc9cbe908681723079a3466c7f /Doc/library/fileinput.rst
parent24201d497cf23d399cceadad8058261c13ae536f (diff)
downloadcpython-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.rst11
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'``.