summaryrefslogtreecommitdiffstats
path: root/Modules/_io/textio.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (withoutAntoine Pitrou2011-07-231-6/+14
| | | | | a read1() method), and add an undocumented *write_through* parameter to mandate unbuffered writes.
* Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a ↵Antoine Pitrou2011-07-131-1/+1
| | | | TextIOWrapper to a huge value, not TypeError.
* Issue #10872: The repr() of TextIOWrapper objects now includes the modeAntoine Pitrou2011-01-091-7/+34
| | | | | | if available. (at Georg's request)
* Issue #10180: Pickling file objects is now explicitly forbidden, sinceAntoine Pitrou2010-11-051-0/+9
| | | | unpickling them produced nonsensical results.
* Issue #10093: ResourceWarnings are now issued when files and sockets areAntoine Pitrou2010-10-291-0/+9
| | | | | deallocated without explicit closing. These warnings are silenced by default, except in pydebug mode.
* Issue #9293: I/O streams now raise `io.UnsupportedOperation` when anAntoine Pitrou2010-09-051-17/+9
| | | | | unsupported operation is attempted (for example, writing to a file open only for reading).
* Issue #6697: Check that _PyUnicode_AsString() result is not NULL in textio.cVictor Stinner2010-05-191-2/+7
| | | | | The bug may occurs if locale.getpreferredencoding() returns an encoding with a surrogate (very unlikely!).
* Merged revisions 80720 via svnmerge fromAntoine Pitrou2010-05-031-7/+21
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80720 | antoine.pitrou | 2010-05-03 18:25:33 +0200 (lun., 03 mai 2010) | 5 lines Issue #7865: The close() method of :mod:`io` objects should not swallow exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon. ........
* Merged revisions 77890 via svnmerge fromAntoine Pitrou2010-01-311-9/+1
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77890 | antoine.pitrou | 2010-01-31 23:26:04 +0100 (dim., 31 janv. 2010) | 7 lines - Issue #6939: Fix file I/O objects in the `io` module to keep the original 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. ........
* Merged revisions 76805 via svnmerge fromBenjamin Peterson2009-12-131-1/+1
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76805 | benjamin.peterson | 2009-12-13 13:19:07 -0600 (Sun, 13 Dec 2009) | 7 lines accept None as the same as having passed no argument in file types #7349 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. ........
* Merged revisions 75007 via svnmerge fromAntoine Pitrou2009-09-211-3/+3
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75007 | antoine.pitrou | 2009-09-21 23:17:48 +0200 (lun., 21 sept. 2009) | 7 lines Issue #6236, #6348: Fix various failures in the io module under AIX 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. ........
* Merged revisions 74581 via svnmerge fromAmaury Forgeot d'Arc2009-08-291-4/+9
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74581 | amaury.forgeotdarc | 2009-08-29 20:14:40 +0200 (sam., 29 août 2009) | 3 lines #6750: TextIOWrapped could duplicate output when several threads write to it. this affect text files opened with io.open(), and the print() function of py3k ........
* move to a naming scheme with all lowercase and underscoresBenjamin Peterson2009-06-121-172/+169
|
* stop throwing out all errors when PyObject_GetAttr failsBenjamin Peterson2009-06-061-6/+19
|
* give the C implementation of TextIOWrapper the errors property #6217Benjamin Peterson2009-06-061-0/+21
|
* Issue #5761: Add the name of the underlying file to the repr() of various IO ↵Antoine Pitrou2009-05-231-2/+19
| | | | objects.
* correctly handle invalid operations on streams (like writing on a ↵Benjamin Peterson2009-05-141-1/+6
| | | | non-writable one)
* Issue #5006: Better handling of unicode byte-order marks (BOM) in the io ↵Antoine Pitrou2009-05-141-22/+104
| | | | | | | | library. This means, for example, that opening an UTF-16 text file in append mode doesn't add a BOM at the end of the file if the file isn't empty.
* implement a detach() method for BufferedIOBase and TextIOBase #5883Benjamin Peterson2009-05-011-4/+47
|
* use NULL for the ends of tablesBenjamin Peterson2009-04-191-4/+4
|
* Issue 5682: Move _io module into its own subdirectory.Alexandre Vassalotti2009-04-041-0/+2420
Reviewed by: Antoine Pitrou