summaryrefslogtreecommitdiffstats
path: root/Modules/_io
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23099: Closing io.BytesIO with exported buffer is rejected now toSerhiy Storchaka2015-02-031-0/+1
|\ | | | | | | prevent corrupting exported buffer.
| * Issue #23099: Closing io.BytesIO with exported buffer is rejected now toSerhiy Storchaka2015-02-031-0/+1
| | | | | | | | prevent corrupting exported buffer.
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-021-4/+6
|\ \ | |/ | | | | and PyObject_AsWriteBuffer().
| * Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-021-4/+6
| | | | | | | | and PyObject_AsWriteBuffer().
* | merge 3.4 (#23093)Benjamin Peterson2014-12-222-39/+41
|\ \ | |/
| * allow more operations to work on detached streams (closes #23093)Benjamin Peterson2014-12-222-39/+41
| | | | | | | | Patch by Martin Panter.
* | Issue #17401: Output the closefd attribute as boolean.Serhiy Storchaka2014-12-021-4/+4
| |
* | merge 3.4 (#22849)Benjamin Peterson2014-11-121-1/+1
|\ \ | |/
| * fix possible double free in TextIOWrapper.__init__ (closes #22849)Benjamin Peterson2014-11-121-1/+1
| |
* | Issue #17401: document closefd in io.FileIO docs and add to reprRobert Collins2014-10-181-4/+6
| | | | | | | | | | | | | | | | | | | | closefd was documented in the open docs but not the matching FileIO class documented. Further, closefd, part of the core state for the object was not shown. In review it was noted that the open docs are a little confusing about the interaction between closefd and paths, so tweaked them at the same time.
* | Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-083-41/+6
|\ \ | |/ | | | | _PyErr_ChainExceptions() function.
| * Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-083-41/+6
| | | | | | | | _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
| | |
| | * Issue #20404: reject non-text encodings early in TextIOWrapper.Georg Brandl2014-03-021-12/+22
| | |
* | | Issue #21860: Correct docstrings of FileIO.seek() and FileIO.truncate() methods.Berker Peksag2014-09-241-3/+5
|\ \ \ | |/ / | | | | | | Patch by Terry Chia.
| * | Issue #21860: Correct docstrings of FileIO.seek() and FileIO.truncate() methods.Berker Peksag2014-09-241-3/+5
| | | | | | | | | | | | Patch by Terry Chia.
| * | properly decref the return value of close()Benjamin Peterson2014-07-051-3/+5
| | |
* | | Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-061-1/+1
| | | | | | | | | | | | argument contains not permitted null character or byte.
* | | Issue #22156: Fix some "comparison between signed and unsigned integers"Victor Stinner2014-08-152-3/+5
| | | | | | | | | | | | compiler warnings in the Modules/ subdirectory.
* | | Issue #15381: Optimized line reading in io.BytesIO.Serhiy Storchaka2014-08-141-29/+27
| | |
* | | Issue #22003: When initialized from a bytes object, io.BytesIO() nowAntoine Pitrou2014-07-291-51/+151
| | | | | | | | | | | | | | | | | | | | | defers making a copy until it is mutated, improving performance and memory use on some use cases. Patch by David Wilson.
* | | properly decref the return value of close()Benjamin Peterson2014-07-051-3/+5
| | |
* | | (Merge 3.4) Issue #21090: io.FileIO.readall() does not ignore I/O errorsVictor Stinner2014-07-021-2/+2
|\ \ \ | |/ / | | | | | | | | | anymore. Before, it ignored I/O errors if at least the first C call read() succeed.
| * | Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,Victor Stinner2014-07-021-2/+2
| | | | | | | | | | | | it ignored I/O errors if at least the first C call read() succeed.
* | | Issue #21679: Prevent extraneous fstat() calls during open(). Patch by ↵Antoine Pitrou2014-06-302-40/+34
| | | | | | | | | | | | Bohuslav Kabrda.
* | | add BufferedIOBase.readinto1 (closes #20578)Benjamin Peterson2014-06-221-6/+60
| | | | | | | | | | | | Patch by Nikolaus Rath.
* | | Issue #10310: Use "unsigned int field:1" instead of "signed int field:1" in aVictor Stinner2014-06-171-3/+3
| | | | | | | | | | | | | | | | | | private structure of the _io module to fix a compiler warning (overflow when assigning the value 1). Fix also a cast in incrementalnewlinedecoder_setstate(). Patch written by Hallvard B Furuseth.
* | | PyErr_NormalizeException doesn't like being called with an exception setSerhiy Storchaka2014-06-113-12/+12
|\ \ \ | |/ / | | | | | | (issues #21677, #21310).
| * | PyErr_NormalizeException doesn't like being called with an exception setSerhiy Storchaka2014-06-113-12/+12
| | | | | | | | | | | | (issues #21677, #21310).
* | | Issue #21310: Fixed possible resource leak in failed open().Serhiy Storchaka2014-06-091-9/+27
|\ \ \ | |/ /
| * | Issue #21310: Fixed possible resource leak in failed open().Serhiy Storchaka2014-06-091-9/+27
| | |
* | | Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods.Serhiy Storchaka2014-06-092-0/+2
|\ \ \ | |/ /
| * | Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods.Serhiy Storchaka2014-06-092-0/+2
| | |
* | | backout 0fb7789b5eeb for test breakage (#20578)Benjamin Peterson2014-06-081-61/+6
| | |
* | | add BufferedIOBase.readinto1 (closes #20578)Benjamin Peterson2014-06-081-6/+61
| | | | | | | | | | | | Patch by Nikolaus Rath.
* | | Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a ↵Antoine Pitrou2014-05-081-4/+5
|\ \ \ | |/ / | | | | | | | | | | | | flush() on the underlying binary stream. Patch by akira.
| * | Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a ↵Antoine Pitrou2014-05-081-4/+5
| | | | | | | | | | | | | | | | | | flush() on the underlying binary stream. Patch by akira.
* | | Issue #21057: TextIOWrapper now allows the underlying binary stream's read() ↵Antoine Pitrou2014-04-291-14/+20
|/ / | | | | | | | | | | or read1() method to return an arbitrary bytes-like object (such as a memoryview). Patch by Nikolaus Rath.
* | #15840: make docs consistent by saying operations on closed files raise ↵Andrew Kuchling2014-04-161-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 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.
* | Close #20404: blacklist non-text encodings in io.TextIOWrapperNick Coghlan2014-02-041-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 Pitrou2013-12-216-7/+33
| |
* | Issue #15204: Deprecated the 'U' mode in file-like objects.Serhiy Storchaka2013-11-231-2/+8
| |
* | Issue #19515: Remove identifiers duplicated in the same file.Victor Stinner2013-11-122-4/+2
| | | | | | | | Patch written by Andrei Dorian Duma.
* | Issue #19437: Fix _io._IOBase.close(), handle _PyObject_SetAttrId() failureVictor Stinner2013-11-071-3/+8
| |
* | Issue #19512: fileio_init() reuses PyId_name identifier instead of "name"Victor Stinner2013-11-061-2/+3
| | | | | | | | literal string
* | Issue #18408: Fix iobase_readline(), handle PyByteArray_Resize() failureVictor Stinner2013-10-291-5/+8
| |