summaryrefslogtreecommitdiffstats
path: root/Modules/_io/bufferedio.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #7865: The close() method of :mod:`io` objects should not swallowAntoine Pitrou2010-05-031-5/+1
| | | | | exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon.
* accept None as the same as having passed no argument in file types #7349Benjamin Peterson2009-12-131-16/+2
| | | | | | | 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-241-2/+4
| | | | (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-291-4/+2
| | | | | The sensible solution seems to be to implement %lld for PyString_FromFormat(V) and PyErr_Format. See issue #7228.
* Silence gcc warnings when trying to print an off_t using "lld", on platformsMark Dickinson2009-10-271-2/+2
| | | | where off_t has type long (e.g., 64-bit Linux).
* Use correct conversion specifier and length modifier when printing anMark Dickinson2009-10-261-2/+4
| | | | integer of type off_t. Also, don't assume that long long is available.
* Fix compilation warning on Windows, where size_t is 32bit but file offsets ↵Amaury Forgeot d'Arc2009-10-051-6/+7
| | | | are 64bit.
* 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 #6215: backport the 3.1 io libAntoine Pitrou2009-06-121-0/+2289