summaryrefslogtreecommitdiffstats
path: root/Modules/_io
Commit message (Collapse)AuthorAgeFilesLines
* Issue #13848: open() and the FileIO constructor now check for NUL characters ↵Antoine Pitrou2012-01-291-21/+9
|\ | | | | | | | | | | in the file name. Patch by Hynek Schlawack.
| * Issue #13848: open() and the FileIO constructor now check for NUL characters ↵Antoine Pitrou2012-01-291-22/+11
| | | | | | | | | | | | in the file name. Patch by Hynek Schlawack.
* | Merge refleak fixes from 3.2Antoine Pitrou2012-01-181-54/+41
|\ \ | |/
| * Fix the _io module leaking references when a sub-interpreter is created.Antoine Pitrou2012-01-181-48/+36
| |
* | Issue #12760: Refer to the new 'x' open mode as "exclusive creation" mode.Charles-François Natali2012-01-141-3/+3
| |
* | Issue #12760: Add a create mode to open(). Patch by David Townshend.Charles-François Natali2012-01-092-21/+45
| |
* | Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou2011-12-161-3/+11
|\ \ | |/ | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth.
| * Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou2011-12-161-3/+11
| | | | | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth.
* | Fix compiler warningsVictor Stinner2011-11-221-1/+1
| |
* | Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError isAntoine Pitrou2011-11-211-32/+46
|\ \ | |/ | | | | | | | | | | raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt.
| * Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError isAntoine Pitrou2011-11-211-32/+46
| | | | | | | | | | | | | | raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt.
* | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()Victor Stinner2011-11-212-3/+3
| | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength()
* | Issue #13393: In TextIOWrapper.read(n), try to read `n` characters asAntoine Pitrou2011-11-181-5/+9
| | | | | | | | once rather than limit ourselves to the default chunk size.
* | Issue #13393: BufferedReader.read1() now asks the full requested size toAntoine Pitrou2011-11-151-33/+16
| | | | | | | | the raw stream instead of limiting itself to the buffer size.
* | Restore performance of special casings for utf-16 and utf-32 in TextIOWrapperAntoine Pitrou2011-11-131-18/+12
| |
* | In text I/O, optimize scanning for new lines with 1-byte unicode charsAntoine Pitrou2011-11-131-12/+20
| |
* | Fix memory leak in io.StringIOAntoine Pitrou2011-11-121-0/+1
| |
* | Issue #13149: Speed up append-only StringIO objects.Antoine Pitrou2011-11-101-4/+105
| | | | | | | | This is very similar to the "lazy strings" idea.
* | Replace {Get,Set,Has}AttrString with *AttrId.Martin v. Löwis2011-10-145-14/+25
| |
* | Issue #12797: Added custom opener parameter to builtin open() and FileIO.open().Ross Lagerwall2011-10-312-18/+49
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-145-38/+38
| |
* | Merge #13159: Replace FileIO's quadratic-time buffer growth algorithm with a ↵Nadeem Vawda2011-10-131-15/+4
|\ \ | |/ | | | | | | | | linear-time one. Also fix the bz2 module, which suffered from the same problem.
| * Issue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a ↵Nadeem Vawda2011-10-131-15/+4
| | | | | | | | | | | | linear-time one. Also fix the bz2 module, whose classes used the same algorithm.
* | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.Antoine Pitrou2011-10-123-97/+7
| |
* | Fix FileIO.readall() (new_buffersize()) for large filesVictor Stinner2011-10-111-1/+5
| | | | | | | | Truncate the buffer size to PY_SSIZE_T_MAX.
* | Fix io.FileIO.readall() on Windows 64 bitsVictor Stinner2011-10-111-4/+4
| | | | | | | | Use Py_off_t type (64 bits) instead of off_t (32 bits).
* | Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH insteadVictor Stinner2011-10-111-1/+1
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-095-72/+117
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.Martin v. Löwis2011-10-071-24/+20
| |
* | Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycleCharles-François Natali2011-10-051-0/+5
|\ \ | |/ | | | | | | would be finalized after the reference to its underlying BufferedRWPair's writer got cleared by the GC.
| * Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycleCharles-François Natali2011-10-051-0/+5
| | | | | | | | | | would be finalized after the reference to its underlying BufferedRWPair's writer got cleared by the GC.
* | Fix usage og PyUnicode_READY()Victor Stinner2011-10-041-0/+4
| |
* | Issue #13087: BufferedReader.seek() now always raises UnsupportedOperationAntoine Pitrou2011-10-041-0/+3
|\ \ | |/ | | | | | | if the underlying raw stream is unseekable, even if the seek could be satisfied using the internal buffer. Patch by John OConnor.
| * Issue #13087: BufferedReader.seek() now always raises UnsupportedOperationAntoine Pitrou2011-10-041-0/+3
| | | | | | | | | | if the underlying raw stream is unseekable, even if the seek could be satisfied using the internal buffer. Patch by John O'Connor.
* | fileio_init() checks for failure on conversion to Py_UNICODE*Victor Stinner2011-09-291-4/+6
| |
* | _io.textio: fix character type, use Py_UCS4 instead of Py_UNICODEVictor Stinner2011-09-291-3/+3
| |
* | Implement PEP 393.Martin v. Löwis2011-09-283-210/+213
| |
* | merge 3.2 (#1616)Benjamin Peterson2011-09-061-1/+1
|\ \ | |/
| * cast to getterBenjamin Peterson2011-09-061-1/+1
| |
* | merge 3.2 (#12878)Benjamin Peterson2011-09-031-0/+14
|\ \ | |/
| * add a __dict__ descr for IOBase (closes #12878)Benjamin Peterson2011-09-031-0/+14
| |
* | Issue #12213: Fix a buffering bug with interleaved reads and writes thatAntoine Pitrou2011-08-201-44/+57
|\ \ | |/ | | | | could appear on BufferedRandom streams.
| * Issue #12213: Fix a buffering bug with interleaved reads and writes thatAntoine Pitrou2011-08-201-59/+58
| | | | | | | | could appear on BufferedRandom streams.
* | Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (withoutAntoine Pitrou2011-07-231-6/+14
|\ \ | |/ | | | | | | a read1() method), and add a *write_through* parameter to mandate unbuffered writes.
| * 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.
| * 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.
* | (merge 3.2) Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX ↵Victor Stinner2011-07-051-0/+8
|\ \ | |/ | | | | on Windows.
| * Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX on Windows.Victor Stinner2011-07-051-0/+8
| |
* | Close #12229: Remove an unused argument of _bufferedreader_peek_unlocked(),Victor Stinner2011-05-311-3/+3
| | | | | | | | io.BufferedReader._peek_unlocked(). Patch written by John O'Connor.