summaryrefslogtreecommitdiffstats
path: root/Modules/_io/bufferedio.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20699: Merge io bytes-like fixes from 3.5Martin Panter2016-05-281-2/+2
|\
| * Issue #20699: Document that “io” methods accept bytes-like objectsMartin Panter2016-05-281-2/+2
| | | | | | | | | | | | | | | | This matches the usage of ZipFile and BufferedWriter. This still requires return values to be bytes() objects. Also document and test that the write() methods should only access their argument before they return.
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-4/+4
|\ \ | |/
| * Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-4/+4
| |
* | Issue #22854: Merge UnsupportedOperation fixes from 3.5Martin Panter2016-03-311-2/+0
|\ \ | |/
| * Issue #22854: Clarify documentation about UnsupportedOperation and add testsMartin Panter2016-03-311-2/+0
| | | | | | | | | | Also change BufferedReader.writable() and BufferedWriter.readable() to always return False.
* | Issue #20440: Applied yet one patch for using Py_SETREF.Serhiy Storchaka2015-12-271-8/+4
|\ \ | |/ | | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR.
| * Issue #20440: Applied yet one patch for using Py_SETREF.Serhiy Storchaka2015-12-271-8/+4
| | | | | | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR.
* | Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka2015-12-251-1/+1
|/ | | | private functions.
* Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.Serhiy Storchaka2015-12-191-1/+1
| | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
* Fixes cast warning in bufferedio.cSteve Dower2015-05-231-1/+1
|
* Issue #23796: peak and read1 methods of BufferedReader now raise ValueErrorBerker Peksag2015-05-121-0/+5
| | | | | | if they called on a closed object. Patch by John Hergenroeder.
* Issue #24001: Argument Clinic converters now use accept={type}Larry Hastings2015-05-041-8/+8
| | | | instead of types={'type'} to specify the types the converter accepts.
* Issue #20175: Converted the _io module to Argument Clinic.Serhiy Storchaka2015-04-161-475/+518
|
* Issue #23309: Avoid a deadlock at shutdown if a daemon thread is abortedAntoine Pitrou2015-04-131-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 #23309: Avoid a deadlock at shutdown if a daemon thread is abortedAntoine Pitrou2015-04-131-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 closingSerhiy Storchaka2015-03-241-4/+10
|\ \ | |/ | | | | writer failed in BufferedRWPair.close().
| * Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-241-4/+10
| | | | | | | | writer failed in BufferedRWPair.close().
* | Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka2015-03-181-2/+2
| |
* | Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() nowVictor Stinner2015-03-061-4/+0
| | | | | | | | | | | | | | | | | | | | | | raise a SystemError if a function returns a result and raises an exception. The SystemError is chained to the previous exception. Refactor also PyObject_Call() and PyCFunction_Call() to make them more readable. Remove some checks which became useless (duplicate checks). Change reviewed by Serhiy Storchaka.
* | merge 3.4 (#23093)Benjamin Peterson2014-12-221-1/+1
|\ \ | |/
| * allow more operations to work on detached streams (closes #23093)Benjamin Peterson2014-12-221-1/+1
| | | | | | | | Patch by Martin Panter.
* | Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-081-14/+2
|\ \ | |/ | | | | _PyErr_ChainExceptions() function.
| * Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-081-14/+2
| | | | | | | | _PyErr_ChainExceptions() function.
* | merge 3.4 (#22517)Benjamin Peterson2014-09-301-0/+2
|\ \ | |/
| * merge 3.3 (#22517)Benjamin Peterson2014-09-301-0/+2
| |\
| | * clear BufferedRWPair weakrefs on deallocation (closes #22517)Benjamin Peterson2014-09-301-0/+2
| | |
* | | add BufferedIOBase.readinto1 (closes #20578)Benjamin Peterson2014-06-221-6/+60
|/ / | | | | | | Patch by Nikolaus Rath.
* | PyErr_NormalizeException doesn't like being called with an exception setSerhiy Storchaka2014-06-111-4/+4
| | | | | | | | (issues #21677, #21310).
* | Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods.Serhiy Storchaka2014-06-091-0/+1
| |
* | Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair.Serhiy Storchaka2014-02-121-2/+7
|\ \ | |/ | | | | Based on patch by Stephen Tu.
| * Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair.Serhiy Storchaka2014-02-121-2/+7
| | | | | | | | Based on patch by Stephen Tu.
* | Issue #20037: Avoid crashes when doing text I/O late at interpreter shutdown.Antoine Pitrou2013-12-211-1/+3
| |
* | Issue #19515: Remove identifiers duplicated in the same file.Victor Stinner2013-11-121-1/+0
| | | | | | | | Patch written by Andrei Dorian Duma.
* | Issue #18112: PEP 442 implementation (safe object finalization).Antoine Pitrou2013-07-301-11/+63
| |
* | Issue #18408: PyEval_EvalFrameEx() and PyEval_CallObjectWithKeywords() now failVictor Stinner2013-07-171-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 Oudkerk2013-07-151-48/+45
|\ \ | |/
| * Issue #18344: Fix potential ref-leaks in _bufferedreader_read_all().Richard Oudkerk2013-07-151-48/+45
| |
* | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when rawSerhiy Storchaka2013-05-281-0/+8
|\ \ | |/ | | | | stream's read() returns more bytes than requested.
| * Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when rawSerhiy Storchaka2013-05-281-0/+8
| | | | | | | | stream's read() returns more bytes than requested.
* | Merge #17275: Fix class name in init errors in C bufferedio classes.R David Murray2013-02-241-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 Murray2013-02-241-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 Murray2013-02-241-2/+2
| | | | | | | | | | | | | | | | | | This fixes an apparent copy-and-paste error. Patch by Manuel Jacob.
* | | merge 3.3 (#16597)Benjamin Peterson2012-12-201-5/+21
|\ \ \ | |/ /
| * | call close on the underlying stream even if flush raises (closes #16597)Benjamin Peterson2012-12-201-5/+21
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Closes #15488: Closed files keep their buffer aliveJesus Cea2012-10-041-0/+5
|/ /
* | Fixed reference leak in error branch of _bufferedreader_read_all(). The ↵Christian Heimes2012-09-101-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 Pitrou2012-07-291-0/+14
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Issue #15487: Add a __sizeof__ implementation for buffered I/O objects.Antoine Pitrou2012-07-291-0/+14
| | | | | | | | Patch by Serhiy Storchaka.
* | Issue #13248: io: Remove obsolete argument "max_buffer_size" of ↵Florent Xicluna2012-07-071-32/+10
| | | | | | | | BufferedWriter and BufferedRWPair.