summaryrefslogtreecommitdiffstats
path: root/Modules/_io
Commit message (Collapse)AuthorAgeFilesLines
* Speed up reading of small files. This avoids multiple C read() calls on pyc ↵Antoine Pitrou2012-04-171-3/+11
| | | | files.
* Don't Py_DECREF NULL variable in io.IncrementalNewlineDecoder.Ross Lagerwall2012-04-071-1/+1
| | | | Found with Clang's Static Analyzer.
* Issue #14387: Do not include accu.h from Python.h.Antoine Pitrou2012-03-221-0/+1
|\
* | Issue #14153 Create _Py_device_encoding() to prevent _io from having to importBrett Cannon2012-02-293-18/+12
| | | | | | | | the os module.
* | Merge 3.2Éric Araujo2012-02-262-2/+2
|\ \ | |/
| * Fix typo in “seperat{or,ion}”Éric Araujo2012-02-262-2/+2
| |
* | use new generic __dict__ descriptor implementationsBenjamin Peterson2012-02-201-14/+1
| |
* | 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.