Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #13848: open() and the FileIO constructor now check for NUL characters ↵ | Antoine Pitrou | 2012-01-29 | 1 | -21/+9 |
|\ | | | | | | | | | | | in the file name. Patch by Hynek Schlawack. | ||||
| * | Issue #13848: open() and the FileIO constructor now check for NUL characters ↵ | Antoine Pitrou | 2012-01-29 | 1 | -22/+11 |
| | | | | | | | | | | | | in the file name. Patch by Hynek Schlawack. | ||||
* | | Merge refleak fixes from 3.2 | Antoine Pitrou | 2012-01-18 | 1 | -54/+41 |
|\ \ | |/ | |||||
| * | Fix the _io module leaking references when a sub-interpreter is created. | Antoine Pitrou | 2012-01-18 | 1 | -48/+36 |
| | | |||||
* | | Issue #12760: Refer to the new 'x' open mode as "exclusive creation" mode. | Charles-François Natali | 2012-01-14 | 1 | -3/+3 |
| | | |||||
* | | Issue #12760: Add a create mode to open(). Patch by David Townshend. | Charles-François Natali | 2012-01-09 | 2 | -21/+45 |
| | | |||||
* | | Issue #10350: Read and save errno before calling a function which might ↵ | Antoine Pitrou | 2011-12-16 | 1 | -3/+11 |
|\ \ | |/ | | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth. | ||||
| * | Issue #10350: Read and save errno before calling a function which might ↵ | Antoine Pitrou | 2011-12-16 | 1 | -3/+11 |
| | | | | | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth. | ||||
* | | Fix compiler warnings | Victor Stinner | 2011-11-22 | 1 | -1/+1 |
| | | |||||
* | | Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is | Antoine Pitrou | 2011-11-21 | 1 | -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 is | Antoine Pitrou | 2011-11-21 | 1 | -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 Stinner | 2011-11-21 | 2 | -3/+3 |
| | | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength() | ||||
* | | Issue #13393: In TextIOWrapper.read(n), try to read `n` characters as | Antoine Pitrou | 2011-11-18 | 1 | -5/+9 |
| | | | | | | | | once rather than limit ourselves to the default chunk size. | ||||
* | | Issue #13393: BufferedReader.read1() now asks the full requested size to | Antoine Pitrou | 2011-11-15 | 1 | -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 TextIOWrapper | Antoine Pitrou | 2011-11-13 | 1 | -18/+12 |
| | | |||||
* | | In text I/O, optimize scanning for new lines with 1-byte unicode chars | Antoine Pitrou | 2011-11-13 | 1 | -12/+20 |
| | | |||||
* | | Fix memory leak in io.StringIO | Antoine Pitrou | 2011-11-12 | 1 | -0/+1 |
| | | |||||
* | | Issue #13149: Speed up append-only StringIO objects. | Antoine Pitrou | 2011-11-10 | 1 | -4/+105 |
| | | | | | | | | This is very similar to the "lazy strings" idea. | ||||
* | | Replace {Get,Set,Has}AttrString with *AttrId. | Martin v. Löwis | 2011-10-14 | 5 | -14/+25 |
| | | |||||
* | | Issue #12797: Added custom opener parameter to builtin open() and FileIO.open(). | Ross Lagerwall | 2011-10-31 | 2 | -18/+49 |
| | | |||||
* | | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 5 | -38/+38 |
| | | |||||
* | | Merge #13159: Replace FileIO's quadratic-time buffer growth algorithm with a ↵ | Nadeem Vawda | 2011-10-13 | 1 | -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 Vawda | 2011-10-13 | 1 | -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 Pitrou | 2011-10-12 | 3 | -97/+7 |
| | | |||||
* | | Fix FileIO.readall() (new_buffersize()) for large files | Victor Stinner | 2011-10-11 | 1 | -1/+5 |
| | | | | | | | | Truncate the buffer size to PY_SSIZE_T_MAX. | ||||
* | | Fix io.FileIO.readall() on Windows 64 bits | Victor Stinner | 2011-10-11 | 1 | -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 instead | Victor Stinner | 2011-10-11 | 1 | -1/+1 |
| | | |||||
* | | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 5 | -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öwis | 2011-10-07 | 1 | -24/+20 |
| | | |||||
* | | Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle | Charles-François Natali | 2011-10-05 | 1 | -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 cycle | Charles-François Natali | 2011-10-05 | 1 | -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 Stinner | 2011-10-04 | 1 | -0/+4 |
| | | |||||
* | | Issue #13087: BufferedReader.seek() now always raises UnsupportedOperation | Antoine Pitrou | 2011-10-04 | 1 | -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 UnsupportedOperation | Antoine Pitrou | 2011-10-04 | 1 | -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 Stinner | 2011-09-29 | 1 | -4/+6 |
| | | |||||
* | | _io.textio: fix character type, use Py_UCS4 instead of Py_UNICODE | Victor Stinner | 2011-09-29 | 1 | -3/+3 |
| | | |||||
* | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 3 | -210/+213 |
| | | |||||
* | | merge 3.2 (#1616) | Benjamin Peterson | 2011-09-06 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | cast to getter | Benjamin Peterson | 2011-09-06 | 1 | -1/+1 |
| | | |||||
* | | merge 3.2 (#12878) | Benjamin Peterson | 2011-09-03 | 1 | -0/+14 |
|\ \ | |/ | |||||
| * | add a __dict__ descr for IOBase (closes #12878) | Benjamin Peterson | 2011-09-03 | 1 | -0/+14 |
| | | |||||
* | | Issue #12213: Fix a buffering bug with interleaved reads and writes that | Antoine Pitrou | 2011-08-20 | 1 | -44/+57 |
|\ \ | |/ | | | | | could appear on BufferedRandom streams. | ||||
| * | Issue #12213: Fix a buffering bug with interleaved reads and writes that | Antoine Pitrou | 2011-08-20 | 1 | -59/+58 |
| | | | | | | | | could appear on BufferedRandom streams. | ||||
* | | Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (without | Antoine Pitrou | 2011-07-23 | 1 | -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 (without | Antoine Pitrou | 2011-07-23 | 1 | -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 Pitrou | 2011-07-13 | 1 | -1/+1 |
|\ \ | |/ | | | | | TextIOWrapper to a huge value, not TypeError. | ||||
| * | Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a ↵ | Antoine Pitrou | 2011-07-13 | 1 | -1/+1 |
| | | | | | | | | TextIOWrapper to a huge value, not TypeError. | ||||
* | | (merge 3.2) Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX ↵ | Victor Stinner | 2011-07-05 | 1 | -0/+8 |
|\ \ | |/ | | | | | on Windows. | ||||
| * | Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX on Windows. | Victor Stinner | 2011-07-05 | 1 | -0/+8 |
| | | |||||
* | | Close #12229: Remove an unused argument of _bufferedreader_peek_unlocked(), | Victor Stinner | 2011-05-31 | 1 | -3/+3 |
| | | | | | | | | io.BufferedReader._peek_unlocked(). Patch written by John O'Connor. |