Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #23796: peak and read1 methods of BufferedReader now raise ValueError | Berker Peksag | 2015-05-12 | 1 | -0/+5 |
| | | | | | | if they called on a closed object. Patch by John Hergenroeder. | ||||
* | Issue #23309: Avoid a deadlock at shutdown if a daemon thread is aborted | Antoine Pitrou | 2015-04-13 | 1 | -1/+22 |
| | | | | | | while it is holding a lock to a buffered I/O object, and the main thread tries to use the same I/O object (typically stdout or stderr). A fatal error is emitted instead. | ||||
* | Issue #21802: The reader in BufferedRWPair now is closed even when closing | Serhiy Storchaka | 2015-03-24 | 1 | -4/+10 |
| | | | | writer failed in BufferedRWPair.close(). | ||||
* | allow more operations to work on detached streams (closes #23093) | Benjamin Peterson | 2014-12-22 | 1 | -1/+1 |
| | | | | Patch by Martin Panter. | ||||
* | Issue #21715: Extracted shared complicated code in the _io module to new | Serhiy Storchaka | 2014-10-08 | 1 | -14/+2 |
| | | | | _PyErr_ChainExceptions() function. | ||||
* | merge 3.3 (#22517) | Benjamin Peterson | 2014-09-30 | 1 | -0/+2 |
|\ | |||||
| * | clear BufferedRWPair weakrefs on deallocation (closes #22517) | Benjamin Peterson | 2014-09-30 | 1 | -0/+2 |
| | | |||||
* | | PyErr_NormalizeException doesn't like being called with an exception set | Serhiy Storchaka | 2014-06-11 | 1 | -4/+4 |
| | | | | | | | | (issues #21677, #21310). | ||||
* | | Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods. | Serhiy Storchaka | 2014-06-09 | 1 | -0/+1 |
| | | |||||
* | | Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair. | Serhiy Storchaka | 2014-02-12 | 1 | -2/+7 |
|\ \ | |/ | | | | | Based on patch by Stephen Tu. | ||||
| * | Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair. | Serhiy Storchaka | 2014-02-12 | 1 | -2/+7 |
| | | | | | | | | Based on patch by Stephen Tu. | ||||
* | | Issue #20037: Avoid crashes when doing text I/O late at interpreter shutdown. | Antoine Pitrou | 2013-12-21 | 1 | -1/+3 |
| | | |||||
* | | Issue #19515: Remove identifiers duplicated in the same file. | Victor Stinner | 2013-11-12 | 1 | -1/+0 |
| | | | | | | | | Patch written by Andrei Dorian Duma. | ||||
* | | Issue #18112: PEP 442 implementation (safe object finalization). | Antoine Pitrou | 2013-07-30 | 1 | -11/+63 |
| | | |||||
* | | Issue #18408: PyEval_EvalFrameEx() and PyEval_CallObjectWithKeywords() now fail | Victor Stinner | 2013-07-17 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | with an assertion error if they are called with an exception set (PyErr_Occurred()). If these functions are called with an exception set, the exception may be cleared and so the caller looses its exception. Add also assertions to PyEval_CallObjectWithKeywords() and call_function() to check if the function succeed with no exception set, or the function failed with an exception set. | ||||
* | | Issue #18344: Fix potential ref-leaks in _bufferedreader_read_all(). | Richard Oudkerk | 2013-07-15 | 1 | -48/+45 |
|\ \ | |/ | |||||
| * | Issue #18344: Fix potential ref-leaks in _bufferedreader_read_all(). | Richard Oudkerk | 2013-07-15 | 1 | -48/+45 |
| | | |||||
* | | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when raw | Serhiy Storchaka | 2013-05-28 | 1 | -0/+8 |
|\ \ | |/ | | | | | stream's read() returns more bytes than requested. | ||||
| * | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when raw | Serhiy Storchaka | 2013-05-28 | 1 | -0/+8 |
| | | | | | | | | stream's read() returns more bytes than requested. | ||||
* | | Merge #17275: Fix class name in init errors in C bufferedio classes. | R David Murray | 2013-02-24 | 1 | -2/+2 |
|\ \ | |/ | | | | | | | | | This fixes an apparent copy-and-paste error. Patch by Manuel Jacob. | ||||
| * | Merge #17275: Fix class name in init errors in C bufferedio classes. | R David Murray | 2013-02-24 | 1 | -2/+2 |
| |\ | | | | | | | | | | | | | | | | This fixes an apparent copy-and-paste error. Patch by Manuel Jacob. | ||||
| | * | #17275: Fix class name in init errors in C bufferedio classes. | R David Murray | 2013-02-24 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | This fixes an apparent copy-and-paste error. Patch by Manuel Jacob. | ||||
* | | | merge 3.3 (#16597) | Benjamin Peterson | 2012-12-20 | 1 | -5/+21 |
|\ \ \ | |/ / | |||||
| * | | call close on the underlying stream even if flush raises (closes #16597) | Benjamin Peterson | 2012-12-20 | 1 | -5/+21 |
| | | | | | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | | Closes #15488: Closed files keep their buffer alive | Jesus Cea | 2012-10-04 | 1 | -0/+5 |
|/ / | |||||
* | | Fixed reference leak in error branch of _bufferedreader_read_all(). The ↵ | Christian Heimes | 2012-09-10 | 1 | -1/+3 |
| | | | | | | | | variable data can contain a bytes object but it wasn't cleaned up when PyList_New() failed. CID 715364 | ||||
* | | Issue #15487: Add a __sizeof__ implementation for buffered I/O objects. | Antoine Pitrou | 2012-07-29 | 1 | -0/+14 |
|\ \ | |/ | | | | | Patch by Serhiy Storchaka. | ||||
| * | Issue #15487: Add a __sizeof__ implementation for buffered I/O objects. | Antoine Pitrou | 2012-07-29 | 1 | -0/+14 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | Issue #13248: io: Remove obsolete argument "max_buffer_size" of ↵ | Florent Xicluna | 2012-07-07 | 1 | -32/+10 |
| | | | | | | | | BufferedWriter and BufferedRWPair. | ||||
* | | Fixes issue #12268: File readline, readlines and read() or readall() methods | Gregory P. Smith | 2012-06-24 | 1 | -4/+4 |
|\ \ | |/ | | | | | | | | | no longer lose data when an underlying read system call is interrupted. IOError is no longer raised due to a read system call returning EINTR from within these methods. | ||||
| * | Fixes issue #12268: File readline, readlines and read() or readall() methods | Gregory P. Smith | 2012-06-24 | 1 | -4/+4 |
| | | | | | | | | | | | | no longer lose data when an underlying read system call is interrupted. IOError is no longer raised due to a read system call returning EINTR from within these methods. | ||||
* | | Closes #10142: Support for SEEK_HOLE/SEEK_DATA | Jesus Cea | 2012-06-22 | 1 | -3/+18 |
| | | |||||
* | | Backing out 86dc014cdd74. Not ready yet | Jesus Cea | 2012-04-26 | 1 | -18/+3 |
| | | |||||
* | | Close #10142: Support for SEEK_HOLE/SEEK_DATA | Jesus Cea | 2012-04-26 | 1 | -3/+18 |
| | | |||||
* | | 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. | ||||
* | | 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. | ||||
* | | Replace {Get,Set,Has}AttrString with *AttrId. | Martin v. Löwis | 2011-10-14 | 1 | -3/+5 |
| | | |||||
* | | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -12/+12 |
| | | |||||
* | | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy. | Antoine Pitrou | 2011-10-12 | 1 | -2/+2 |
| | | |||||
* | | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 1 | -17/+30 |
| | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing. | ||||
* | | 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. | ||||
* | | 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. | ||||
* | | 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. | ||||
* | | 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. | ||||
* | | Issue #12175: BufferedReader.read(-1) now calls raw.readall() if available. | Victor Stinner | 2011-05-25 | 1 | -11/+36 |
| | | |||||
* | | Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence | Antoine Pitrou | 2011-05-12 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | on a file opened in read+write mode (namely: reading, seeking a bit forward, writing, then seeking before the previous write but still within buffered data, and writing again). |