summaryrefslogtreecommitdiffstats
path: root/Modules/_io/textio.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #7865: The close() method of :mod:`io` objects should not swallowAntoine Pitrou2010-05-031-7/+21
| | | | | exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon.
* - Issue #6939: Fix file I/O objects in the `io` module to keep the originalAntoine Pitrou2010-01-311-9/+1
| | | | | | 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.
* accept None as the same as having passed no argument in file types #7349Benjamin Peterson2009-12-131-1/+1
| | | | | | | 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 #6236, #6348: Fix various failures in the io module under AIXAntoine Pitrou2009-09-211-3/+3
| | | | | | | 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 #6215: backport the 3.1 io libAntoine Pitrou2009-06-121-0/+2606