Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #20501: fileinput module no longer reads whole file into memory when using | Serhiy Storchaka | 2014-02-26 | 1 | -2/+3 |
| | | | | fileinput.hook_encoded. | ||||
* | Issue #18315: Improve fileinput docs by adding 'bufsize' where missing and | Terry Jan Reedy | 2013-06-28 | 1 | -6/+5 |
| | | | | | replacing redundant signature in input() docstring with one-line summary. Original patch by Terrel Shumway. | ||||
* | Remove a use of callable() in fileinput to silence a -3 warning. | Brett Cannon | 2008-08-03 | 1 | -1/+1 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-02-19 | 1 | -2/+2 |
| | |||||
* | Patch #1215184: FileInput now can be given an opening hook which can | Georg Brandl | 2006-02-19 | 1 | -6/+36 |
| | | | | be used to control how files are opened. | ||||
* | Patch #1212287: fileinput.input() now has a mode parameter for | Georg Brandl | 2006-02-19 | 1 | -10/+16 |
| | | | | specifying the file mode input files should be opened with. | ||||
* | Patch #1215184: fileinput now has a fileno() function for getting the | Georg Brandl | 2006-02-19 | 1 | -3/+21 |
| | | | | current file number. | ||||
* | Patch #1337756: fileinput now accepts Unicode filenames. | Georg Brandl | 2006-02-19 | 1 | -1/+1 |
| | |||||
* | Test that chmod() actually exists before calling it (it doesn't on MacOS9). | Jack Jansen | 2003-01-08 | 1 | -1/+2 |
| | |||||
* | tightening up a few except: clauses | Skip Montanaro | 2002-08-14 | 1 | -3/+3 |
| | | | | see bug 411881 | ||||
* | Replace obsolete stat module constants with | Walter Dörwald | 2002-06-06 | 1 | -2/+2 |
| | | | | | | equivalent attributes in a few more spots. This closes SF patch http://www.python.org/sf/562373 | ||||
* | Whitespace normalization. | Tim Peters | 2002-05-23 | 1 | -9/+9 |
| | |||||
* | Added docstrings excerpted from Python Library Reference. | Raymond Hettinger | 2002-05-15 | 1 | -0/+49 |
| | | | | Closes patch 556161. | ||||
* | Whitespace normalization. | Tim Peters | 2002-04-16 | 1 | -1/+1 |
| | |||||
* | Partial introduction of bools where appropriate. | Guido van Rossum | 2002-04-07 | 1 | -4/+4 |
| | |||||
* | Implement iterator protocol. | Neil Schemenauer | 2002-03-26 | 1 | -4/+13 |
| | |||||
* | SF patch #474590 -- RISC OS support | Guido van Rossum | 2001-10-24 | 1 | -1/+1 |
| | |||||
* | more __all__ updates | Skip Montanaro | 2001-01-20 | 1 | -0/+3 |
| | |||||
* | Speed it up by using readlines(sizehint). It's still slower than | Guido van Rossum | 2001-01-05 | 1 | -10/+39 |
| | | | | | | | other ways of reading input. :-( In the process, I added an optional bufsize argument to the input() function and the FileInput class. | ||||
* | Implement suggestion from Lawrence Kesteloot in PR#280, to change the | Guido van Rossum | 2000-04-10 | 1 | -6/+7 |
| | | | | | | | | | | | | | | | default list of files from () to None, and explicitly test for None before defaulting to sys.argv[1:]. This means that if you pass in an explicit empty list, it will read stdin instead of defaulting to sys.argv[1:]. This fixes a buglet in the test script (when called with options but without files, it chokes when it tries to interpret the options as files). Lawrence adds: "I suspect that this is a safe change, because I can't imagine someone actively passing in an empty list when they want sys.argv used." I agree. | ||||
* | Fix for PR#111: when using the inplace option, give the new file the | Guido van Rossum | 1999-10-18 | 1 | -3/+15 |
| | | | | | same permissions as the old file, plugging a security hole. (Not using exactly the suggested bugfix.) | ||||
* | Add missing initializer for self._backupfilename. Due to Ralph Butler. | Guido van Rossum | 1998-07-20 | 1 | -0/+1 |
| | |||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -100/+100 |
| | |||||
* | A new standard module, as discussed on comp.lang.python, to simplify | Guido van Rossum | 1997-11-21 | 1 | -0/+254 |
the writing of filters. Typical use is: import fileinput for line in fileinput.input(): process(line) This iterates over the lines of all files listed in sys.argv[1:], defaulting to sys.stdin if the list is empty or when a filename is '-'. There is also an option to use this to direct the output back to the input files. |