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 #23908: os functions now reject paths with embedded null character | Serhiy Storchaka | 2015-04-20 | 1 | -7/+6 |
| | | | | on Windows instead of silently truncate them. | ||||
* | Issue #22982: Improve BOM handling when seeking to multiple positions of a ↵ | Antoine Pitrou | 2015-04-13 | 1 | -4/+21 |
| | | | | writable text file. | ||||
* | 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 #21859: Corrected FileIO docstrings. | Serhiy Storchaka | 2015-04-10 | 1 | -15/+18 |
| | |||||
* | Replaced "string" with "bytes object" in docstrings of binary I/O objects. | Serhiy Storchaka | 2015-04-09 | 2 | -13/+13 |
| | |||||
* | Issue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances. | Serhiy Storchaka | 2015-03-30 | 1 | -6/+2 |
| | |||||
* | 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(). | ||||
* | Issue #5700: io.FileIO() called flush() after closing the file. | Serhiy Storchaka | 2015-02-20 | 1 | -7/+14 |
| | | | | flush() was not called in close() if closefd=False. | ||||
* | Issue #23099: Closing io.BytesIO with exported buffer is rejected now to | Serhiy Storchaka | 2015-02-03 | 1 | -0/+1 |
| | | | | prevent corrupting exported buffer. | ||||
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() | Serhiy Storchaka | 2015-02-02 | 1 | -4/+6 |
| | | | | and PyObject_AsWriteBuffer(). | ||||
* | allow more operations to work on detached streams (closes #23093) | Benjamin Peterson | 2014-12-22 | 2 | -39/+41 |
| | | | | Patch by Martin Panter. | ||||
* | fix possible double free in TextIOWrapper.__init__ (closes #22849) | Benjamin Peterson | 2014-11-12 | 1 | -1/+1 |
| | |||||
* | Issue #21715: Extracted shared complicated code in the _io module to new | Serhiy Storchaka | 2014-10-08 | 3 | -41/+6 |
| | | | | _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 |
| | | |||||
| * | Issue #20404: reject non-text encodings early in TextIOWrapper. | Georg Brandl | 2014-03-02 | 1 | -12/+22 |
| | | |||||
* | | Issue #21860: Correct docstrings of FileIO.seek() and FileIO.truncate() methods. | Berker Peksag | 2014-09-24 | 1 | -3/+5 |
| | | | | | | | | Patch by Terry Chia. | ||||
* | | properly decref the return value of close() | Benjamin Peterson | 2014-07-05 | 1 | -3/+5 |
| | | |||||
* | | Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before, | Victor Stinner | 2014-07-02 | 1 | -2/+2 |
| | | | | | | | | it ignored I/O errors if at least the first C call read() succeed. | ||||
* | | PyErr_NormalizeException doesn't like being called with an exception set | Serhiy Storchaka | 2014-06-11 | 3 | -12/+12 |
| | | | | | | | | (issues #21677, #21310). | ||||
* | | Issue #21310: Fixed possible resource leak in failed open(). | Serhiy Storchaka | 2014-06-09 | 1 | -9/+27 |
| | | |||||
* | | Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods. | Serhiy Storchaka | 2014-06-09 | 2 | -0/+2 |
| | | |||||
* | | Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a ↵ | Antoine Pitrou | 2014-05-08 | 1 | -4/+5 |
| | | | | | | | | | | | | flush() on the underlying binary stream. Patch by akira. | ||||
* | | #15840: make docs consistent by saying operations on closed files raise ↵ | Andrew Kuchling | 2014-04-16 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | ValueError. Patch by Caelyn McAulay. Neither Caelyn nor I could find any cases in 2.7 or 3.4/5 where an operation on a closed stream raised IOError; generally the C implementations have a macro to check for the stream being closed, and these macros all raised ValueError. If we find any, a new bug should be opened. | ||||
* | | 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. | ||||
* | | Close #20404: blacklist non-text encodings in io.TextIOWrapper | Nick Coghlan | 2014-02-04 | 1 | -12/+22 |
| | | | | | | | | | | | | | | | | | | - io.TextIOWrapper (and hence the open() builtin) now use the internal codec marking system added for issue #19619 - also tweaked the C code to only look up the encoding once, rather than multiple times - the existing output type checks remain in place to deal with unmarked third party codecs. | ||||
* | | Issue #20037: Avoid crashes when doing text I/O late at interpreter shutdown. | Antoine Pitrou | 2013-12-21 | 6 | -7/+33 |
| | | |||||
* | | Issue #15204: Deprecated the 'U' mode in file-like objects. | Serhiy Storchaka | 2013-11-23 | 1 | -2/+8 |
| | | |||||
* | | Issue #19515: Remove identifiers duplicated in the same file. | Victor Stinner | 2013-11-12 | 2 | -4/+2 |
| | | | | | | | | Patch written by Andrei Dorian Duma. | ||||
* | | Issue #19437: Fix _io._IOBase.close(), handle _PyObject_SetAttrId() failure | Victor Stinner | 2013-11-07 | 1 | -3/+8 |
| | | |||||
* | | Issue #19512: fileio_init() reuses PyId_name identifier instead of "name" | Victor Stinner | 2013-11-06 | 1 | -2/+3 |
| | | | | | | | | literal string | ||||
* | | Issue #18408: Fix iobase_readline(), handle PyByteArray_Resize() failure | Victor Stinner | 2013-10-29 | 1 | -5/+8 |
| | | |||||
* | | Issue #19356: Avoid using a C variabled named "_self", it's a reserved word ↵ | Antoine Pitrou | 2013-10-23 | 1 | -2/+2 |
|\ \ | |/ | | | | | in some C compilers. | ||||
| * | Issue #19356: Avoid using a C variabled named "_self", it's a reserved word ↵ | Antoine Pitrou | 2013-10-23 | 1 | -2/+2 |
| | | | | | | | | in some C compilers. | ||||
* | | Issue #9548: Add a minimal "_bootlocale" module that is imported by the _io ↵ | Antoine Pitrou | 2013-10-11 | 1 | -1/+1 |
| | | | | | | | | module instead of the full locale module. | ||||
* | | Issue #18876: The FileIO.mode attribute now better reflects the actual mode ↵ | Antoine Pitrou | 2013-09-04 | 1 | -9/+13 |
|\ \ | |/ | | | | | | | | | under which the file was opened. Patch by Erik Bray. | ||||
| * | Issue #18876: The FileIO.mode attribute now better reflects the actual mode ↵ | Antoine Pitrou | 2013-09-04 | 1 | -10/+13 |
| | | | | | | | | | | | | under which the file was opened. Patch by Erik Bray. | ||||
* | | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 1 | -3/+29 |
| | | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | ||||
* | | Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit platforms. | Serhiy Storchaka | 2013-08-20 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch by Yogesh Chaudhari. | ||||
| * | Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit platforms. | Serhiy Storchaka | 2013-08-20 | 1 | -1/+1 |
| | | | | | | | | Patch by Yogesh Chaudhari. | ||||
* | | Issue #18608: Avoid keeping a strong reference to the locale module inside ↵ | Antoine Pitrou | 2013-08-01 | 3 | -27/+48 |
| | | | | | | | | the _io module. | ||||
* | | Fix use of uninitialized scalar variable, see 3f994367a979 | Christian Heimes | 2013-07-30 | 1 | -1/+3 |
| | | | | | | | | CID 1058763 | ||||
* | | Issue #18112: PEP 442 implementation (safe object finalization). | Antoine Pitrou | 2013-07-30 | 4 | -64/+163 |
| | | |||||
* | | 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 #18408: Fix fileio_read() on _PyBytes_Resize() failure | Victor Stinner | 2013-07-16 | 1 | -1/+1 |
| | | | | | | | | bytes is NULL on _PyBytes_Resize() failure | ||||
* | | 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 |
| | | |||||
* | | If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified. | Victor Stinner | 2013-06-24 | 2 | -8/+8 |
| | |