Changeset 391 for python/trunk/Doc/library/fileinput.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/fileinput.rst
r2 r391 7 7 .. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org> 8 8 9 **Source code:** :source:`Lib/fileinput.py` 10 11 -------------- 9 12 10 13 This module implements a helper class and functions to quickly write a … … 48 51 49 52 50 .. function:: input([files[, inplace[, backup[, mode[, openhook]]]]])53 .. function:: input([files[, inplace[, backup[, bufsize[, mode[, openhook]]]]]]) 51 54 52 55 Create an instance of the :class:`FileInput` class. The instance will be used … … 120 123 121 124 122 .. class:: FileInput([files[, inplace[, backup[, mode[, openhook]]]]])125 .. class:: FileInput([files[, inplace[, backup[,bufsize[, mode[, openhook]]]]]]) 123 126 124 127 Class :class:`FileInput` is the implementation; its methods :meth:`filename`, 125 128 :meth:`fileno`, :meth:`lineno`, :meth:`filelineno`, :meth:`isfirstline`, 126 :meth:`isstdin`, :meth:`nextfile` and :meth:`close` correspond to the functions 127 of the same name in the module. In addition it has a :meth:`readline` method 128 which returns the next input line, and a :meth:`__getitem__` method which 129 implements the sequence behavior. The sequence must be accessed in strictly 130 sequential order; random access and :meth:`readline` cannot be mixed. 129 :meth:`isstdin`, :meth:`nextfile` and :meth:`close` correspond to the 130 functions of the same name in the module. In addition it has a 131 :meth:`~file.readline` method which returns the next input line, 132 and a :meth:`__getitem__` method which implements the sequence behavior. 133 The sequence must be accessed in strictly sequential order; random access 134 and :meth:`~file.readline` cannot be mixed. 131 135 132 136 With *mode* you can specify which file mode will be passed to :func:`open`. It
Note:
See TracChangeset
for help on using the changeset viewer.