<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/fileinput.py, branch 2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/fileinput.py?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/fileinput.py?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-10-07T01:18:17Z</updated>
<entry>
<title>Whitespace normalization.</title>
<updated>2002-10-07T01:18:17Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-10-07T01:18:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e40add41ccfb6560756051f79339286cd84180bb'/>
<id>urn:sha1:e40add41ccfb6560756051f79339286cd84180bb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add docstrings excerpted from the library reference.</title>
<updated>2002-05-15T03:50:31Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-05-15T03:50:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=099ec3a6bca6e2c84983f2a9388e49aa3c041ba1'/>
<id>urn:sha1:099ec3a6bca6e2c84983f2a9388e49aa3c041ba1</id>
<content type='text'>
Closes patch 556161.
</content>
</entry>
<entry>
<title>SF patch #474590 -- RISC OS support</title>
<updated>2001-10-24T20:42:55Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-24T20:42:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e2ae77b8b8a62e648bb1864a9b36ef3280984404'/>
<id>urn:sha1:e2ae77b8b8a62e648bb1864a9b36ef3280984404</id>
<content type='text'>
</content>
</entry>
<entry>
<title>more __all__ updates</title>
<updated>2001-01-20T23:34:12Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2001-01-20T23:34:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eccd02a40d0921fc2953213e71da8a3a79d00e17'/>
<id>urn:sha1:eccd02a40d0921fc2953213e71da8a3a79d00e17</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Speed it up by using readlines(sizehint).  It's still slower than</title>
<updated>2001-01-05T14:44:39Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-05T14:44:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=47955241011a7042405545a7427808bd01d901f2'/>
<id>urn:sha1:47955241011a7042405545a7427808bd01d901f2</id>
<content type='text'>
other ways of reading input. :-(

In the process, I added an optional bufsize argument to the input()
function and the FileInput class.
</content>
</entry>
<entry>
<title>Implement suggestion from Lawrence Kesteloot in PR#280, to change the</title>
<updated>2000-04-10T17:16:12Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-04-10T17:16:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2516b39dd35a3e0d815e25ee652cea6c90cc5b28'/>
<id>urn:sha1:2516b39dd35a3e0d815e25ee652cea6c90cc5b28</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Fix for PR#111: when using the inplace option, give the new file the</title>
<updated>1999-10-18T21:41:43Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1999-10-18T21:41:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dcb8583c180bc9c477f58f77166dc2abbccadc11'/>
<id>urn:sha1:dcb8583c180bc9c477f58f77166dc2abbccadc11</id>
<content type='text'>
same permissions as the old file, plugging a security hole.
(Not using exactly the suggested bugfix.)
</content>
</entry>
<entry>
<title>Add missing initializer for self._backupfilename.  Due to Ralph Butler.</title>
<updated>1998-07-20T15:49:28Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-07-20T15:49:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0aec9fb1830bf3441b044f98cb306dc3432455ef'/>
<id>urn:sha1:0aec9fb1830bf3441b044f98cb306dc3432455ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mass check-in after untabifying all files that need it.</title>
<updated>1998-03-26T21:13:24Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-03-26T21:13:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=45e2fbc2e70ef28b1f0327207f33dab3a4e825c5'/>
<id>urn:sha1:45e2fbc2e70ef28b1f0327207f33dab3a4e825c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>A new standard module, as discussed on comp.lang.python, to simplify</title>
<updated>1997-11-21T17:12:59Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-11-21T17:12:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7d5b99d8bfa612cbe594d18ac23da1e6207952f4'/>
<id>urn:sha1:7d5b99d8bfa612cbe594d18ac23da1e6207952f4</id>
<content type='text'>
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.
</content>
</entry>
</feed>
