|
90 | 90 |
|
91 | 91 | def input(files=None, inplace=False, backup="", bufsize=0, |
92 | 92 | mode="r", openhook=None): |
93 | | - """input(files=None, inplace=False, backup="", bufsize=0, \ |
94 | | -mode="r", openhook=None) |
| 93 | + """Return an instance of the FileInput class, which can be iterated. |
95 | 94 |
|
96 | | - Create an instance of the FileInput class. The instance will be used |
97 | | - as global state for the functions of this module, and is also returned |
98 | | - to use during iteration. The parameters to this function will be passed |
99 | | - along to the constructor of the FileInput class. |
| 95 | + The parameters are passed to the constructor of the FileInput class. |
| 96 | + The returned instance, in addition to being an iterator, |
| 97 | + keeps global state for the functions of this module,. |
100 | 98 | """ |
101 | 99 | global _state |
102 | 100 | if _state and _state._file: |
@@ -183,7 +181,7 @@ def isstdin(): |
183 | 181 | return _state.isstdin() |
184 | 182 |
|
185 | 183 | class FileInput: |
186 | | - """class FileInput([files[, inplace[, backup[, mode[, openhook]]]]]) |
| 184 | + """FileInput([files[, inplace[, backup[, bufsize, [, mode[, openhook]]]]]]) |
187 | 185 |
|
188 | 186 | Class FileInput is the implementation of the module; its methods |
189 | 187 | filename(), lineno(), fileline(), isfirstline(), isstdin(), fileno(), |
|
0 commit comments