summaryrefslogtreecommitdiffstats
path: root/Modules/_io
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12175: RawIOBase.readall() now returns None if read() returns None.Victor Stinner2011-05-251-0/+8
|
* Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError ifVictor Stinner2011-05-251-0/+2
| | | | the file is closed.
* Issue #12062: In the `io` module, fix a flushing bug when doing a certainAntoine Pitrou2011-05-121-1/+1
| | | | | | type of I/O sequence on a file opened in read+write mode (namely: reading, seeking a bit forward, writing, then seeking before the previous write but still within buffered data, and writing again).
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-162-2/+2
|
* Merged revisions 88610 via svnmerge fromAntoine Pitrou2011-02-251-2/+49
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88610 | antoine.pitrou | 2011-02-25 22:24:11 +0100 (ven., 25 févr. 2011) | 4 lines Issue #10956: Buffered I/O classes retry reading or writing after a signal has arrived and the handler returned successfully. ........
* Merged revisions 87427 via svnmerge fromAntoine Pitrou2010-12-211-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87427 | antoine.pitrou | 2010-12-21 22:20:59 +0100 (mar., 21 déc. 2010) | 3 lines Issue #10750: The `raw` attribute of buffered IO objects is now read-only. ........
* Merged revisions 86981,86984 via svnmerge fromAntoine Pitrou2010-12-031-19/+57
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86981 | antoine.pitrou | 2010-12-03 19:41:39 +0100 (ven., 03 déc. 2010) | 5 lines Issue #10478: Reentrant calls inside buffered IO objects (for example by way of a signal handler) now raise a RuntimeError instead of freezing the current process. ........ r86984 | antoine.pitrou | 2010-12-03 20:14:17 +0100 (ven., 03 déc. 2010) | 3 lines Add an "advanced topics" section to the io doc. ........
* Merged revisions 85768-85771,85773,85777,85823,85825 via svnmerge fromGeorg Brandl2010-11-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85768 | georg.brandl | 2010-10-21 14:59:14 +0200 (Do, 21 Okt 2010) | 1 line #9919: fix off-by-one error in lineno command in Misc/gdbinit; also add newline to its output. ........ r85769 | georg.brandl | 2010-10-21 15:01:23 +0200 (Do, 21 Okt 2010) | 1 line Fix missing import. ........ r85770 | georg.brandl | 2010-10-21 15:29:10 +0200 (Do, 21 Okt 2010) | 1 line #3077: fix h2py substitution of character literals. ........ r85771 | georg.brandl | 2010-10-21 15:34:51 +0200 (Do, 21 Okt 2010) | 1 line #1203650: allow larger list of files in windows makefile for freeze. ........ r85773 | georg.brandl | 2010-10-21 15:45:52 +0200 (Do, 21 Okt 2010) | 1 line #4829: better error message for invalid file mode ........ r85777 | georg.brandl | 2010-10-21 17:44:51 +0200 (Do, 21 Okt 2010) | 1 line Add .hgeol file for the Mercurial EOL extension. ........ r85823 | georg.brandl | 2010-10-24 16:32:45 +0200 (So, 24 Okt 2010) | 1 line Fix style. ........ r85825 | georg.brandl | 2010-10-24 17:16:02 +0200 (So, 24 Okt 2010) | 1 line Add documentation about the default warnings filters. ........
* Merged revisions 86587 via svnmerge fromBenjamin Peterson2010-11-201-3/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86587 | benjamin.peterson | 2010-11-20 11:24:04 -0600 (Sat, 20 Nov 2010) | 1 line correct logic when pos is after the string #10467 ........
* Merged revisions 85982 via svnmerge fromAntoine Pitrou2010-10-311-1/+6
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85982 | antoine.pitrou | 2010-10-30 18:19:14 +0200 (sam., 30 oct. 2010) | 4 lines Issue #10253: FileIO leaks a file descriptor when trying to open a file for append that isn't seekable. Patch by Brian Brazil. ........
* Merged revisions 85864 via svnmerge fromAntoine Pitrou2010-10-271-1/+1
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85864 | antoine.pitrou | 2010-10-27 21:45:43 +0200 (mer., 27 oct. 2010) | 5 lines In open(), only set the buffer size from st.st_blksize when it is greater than 1. This matches the pure Python implementation in _pyio and should fix a couple of failures on the NetBSD buildbot. ........
* Merged revisions 84814 via svnmerge fromAntoine Pitrou2010-09-141-2/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84814 | antoine.pitrou | 2010-09-14 20:37:24 +0200 (mar., 14 sept. 2010) | 4 lines Issue #9854: The default read() implementation in io.RawIOBase now handles non-blocking readinto() returning None correctly. ........
* Merged revisions 84438 via svnmerge fromAntoine Pitrou2010-09-022-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84438 | antoine.pitrou | 2010-09-02 21:48:07 +0200 (jeu., 02 sept. 2010) | 3 lines BytesIO.getvalue() and StringIO.getvalue() are METH_NOARGS. ........
* Merged revisions 84239 via svnmerge fromAntoine Pitrou2010-08-211-0/+10
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84239 | antoine.pitrou | 2010-08-21 21:09:32 +0200 (sam., 21 août 2010) | 4 lines Issue #9617: Signals received during a low-level write operation aren't ignored by the buffered IO layer anymore. ........
* Merged revisions 83944 via svnmerge fromAntoine Pitrou2010-08-111-1/+4
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83944 | antoine.pitrou | 2010-08-11 15:31:33 +0200 (mer., 11 août 2010) | 6 lines Issue #9550: a BufferedReader could issue an additional read when the original read request had been satisfied, which can block indefinitely when the underlying raw IO channel is e.g. a socket. Report and original patch by Jason V. Miller. ........
* Merged revisions 83411 via svnmerge fromAntoine Pitrou2010-08-011-0/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83411 | antoine.pitrou | 2010-08-01 18:53:42 +0200 (dim., 01 août 2010) | 4 lines Issue #9448: Fix a leak of OS resources (mutexes or semaphores) when re-initializing a buffered IO object by calling its `__init__` method. ........
* Untabify Modules/_io/fileio.cAntoine Pitrou2010-05-051-705/+705
|
* Issue #7865: The close() method of :mod:`io` objects should not swallowAntoine Pitrou2010-05-034-17/+24
| | | | | exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon.
* Issue #8438: Remove reference to the missing "surrogateescape" encodingAntoine Pitrou2010-04-191-1/+1
| | | | error handler from the new IO library.
* Revert temporary commit in r79937Antoine Pitrou2010-04-101-37/+18
|
* Temporary commit of fix to issue #5380 (in order to watch buildbot response)Antoine Pitrou2010-04-101-18/+37
|
* #7706: add include guards where they're missing; required for Windows CEAndrew M. Kuchling2010-02-221-0/+6
|
* - Issue #6939: Fix file I/O objects in the `io` module to keep the originalAntoine Pitrou2010-01-315-35/+55
| | | | | | file position when calling `truncate()`. It would previously change the file position to the given argument, which goes against the tradition of ftruncate() and other truncation APIs. Patch by Pascal Chambon.
* Issue #7545: improve documentation of the `buffering` argument in io.open().Antoine Pitrou2009-12-191-4/+14
|
* remove unused variableBenjamin Peterson2009-12-131-1/+1
|
* accept None as the same as having passed no argument in file types #7349Benjamin Peterson2009-12-136-25/+32
| | | | | | | This is for consistency with imitation file objects like StringIO and BytesIO. This commit also adds a few tests, where they were lacking for concerned methods.
* Issue #7228: Fix format mismatch when printing something of type off_t.Mark Dickinson2009-11-242-3/+21
| | | | (Should silence some compiler warnings.)
* Buffered I/O: optimize lock taking in the common non-contended case.Antoine Pitrou2009-11-011-3/+5
|
* Roll back ill-considered attempts to fix printf specifier mismatch for off_t.Mark Dickinson2009-10-292-26/+9
| | | | | The sensible solution seems to be to implement %lld for PyString_FromFormat(V) and PyErr_Format. See issue #7228.
* Fix format specifier for MSVCMark Dickinson2009-10-281-1/+1
|
* Replace long long with PY_LONG_LONGMark Dickinson2009-10-281-2/+2
|
* Silence gcc warnings when trying to print an off_t using "lld", on platformsMark Dickinson2009-10-272-3/+14
| | | | where off_t has type long (e.g., 64-bit Linux).
* Use correct conversion specifier and length modifier when printing anMark Dickinson2009-10-262-8/+14
| | | | integer of type off_t. Also, don't assume that long long is available.
* Fix compilation error in debug mode.Antoine Pitrou2009-10-241-3/+0
|
* Manual py3k backport: [svn r74316] Issue #5449: Fix io.BytesIO to not accept ↵Antoine Pitrou2009-10-241-1/+3
| | | | arbitrary keywords
* Manual py3k backport: [svn r74158] Issue #6218: Make io.BytesIO and ↵Antoine Pitrou2009-10-242-9/+260
| | | | io.StringIO picklable.
* Manual py3k backport: [svn r74155] Issue #6242: Fix deallocator of ↵Antoine Pitrou2009-10-242-6/+10
| | | | io.StringIO and io.BytesIO
* Fix compilation warning on Windows, where size_t is 32bit but file offsets ↵Amaury Forgeot d'Arc2009-10-051-6/+7
| | | | are 64bit.
* Issue #6236, #6348: Fix various failures in the io module under AIXAntoine Pitrou2009-09-212-7/+7
| | | | | | | and other platforms, when using a non-gcc compiler. Patch by egreen. In addition, I made explicit the signedness of all bitfields in the IO library.
* #6750: TextIOWrapped could duplicate output when several threads write to it.Amaury Forgeot d'Arc2009-08-291-4/+9
| | | | this affect text files opened with io.open(), and the print() function of py3k
* Issue #6629: Fix a data corruption issue in the new `io` package, which couldAntoine Pitrou2009-08-061-0/+13
| | | | | | | | occur when writing to a BufferedRandom object (e.g. a file opened in "rb+" or "wb+" mode) after having buffered a certain amount of data for reading. This bug was not present in the pure Python implementation. Yes, this is a serious issue.
* Issue #4856: Remove checks for win NT.Hirokazu Yamamoto2009-06-281-5/+2
|
* backport r73430Benjamin Peterson2009-06-141-9/+0
|
* Issue #6215: backport the 3.1 io libAntoine Pitrou2009-06-128-0/+9244