summaryrefslogtreecommitdiffstats
path: root/Modules/_io/textio.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-4/+4
|
* 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 #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-2/+2
|\
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-2/+2
| | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | Issue #24009: Got rid of using rare "y#" format unit in TextIOWrapper.tell().Serhiy Storchaka2015-05-061-2/+11
| | | | | | | | | | Parsed value should be bytes, not general robuffer, this is required in other places.
* | Issue #24001: Argument Clinic converters now use accept={type}Larry Hastings2015-05-041-4/+4
| | | | | | | | instead of types={'type'} to specify the types the converter accepts.
* | Use PyArg_ParseTuple (new API) instead of PyArg_Parse (old API) for parsing ↵Serhiy Storchaka2015-04-191-5/+5
| | | | | | | | tuples.
* | Issue #20175: Converted the _io module to Argument Clinic.Serhiy Storchaka2015-04-161-194/+282
| |
* | Issue #22982: Improve BOM handling when seeking to multiple positions of a ↵Antoine Pitrou2015-04-131-4/+21
|\ \ | |/ | | | | writable text file.
| * Issue #22982: Improve BOM handling when seeking to multiple positions of a ↵Antoine Pitrou2015-04-131-4/+21
| | | | | | | | writable text file.
* | Issue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances.Serhiy Storchaka2015-03-301-6/+2
|\ \ | |/
| * Issue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances.Serhiy Storchaka2015-03-301-6/+2
| |
* | merge 3.4 (#23093)Benjamin Peterson2014-12-221-38/+40
|\ \ | |/
| * allow more operations to work on detached streams (closes #23093)Benjamin Peterson2014-12-221-38/+40
| | | | | | | | Patch by Martin Panter.
* | 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 #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.
* | Issue #22156: Fix some "comparison between signed and unsigned integers"Victor Stinner2014-08-151-1/+1
| | | | | | | | compiler warnings in the Modules/ subdirectory.
* | 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-111-4/+4
|\ \ | |/ | | | | (issues #21677, #21310).
| * 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 #21677: Fixed chaining nonnormalized exceptions in io close() methods.Serhiy Storchaka2014-06-091-0/+1
| |
* | 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.
* 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-211-2/+7
|
* Issue #19356: Avoid using a C variabled named "_self", it's a reserved word ↵Antoine Pitrou2013-10-231-2/+2
|\ | | | | | | in some C compilers.
| * Issue #19356: Avoid using a C variabled named "_self", it's a reserved word ↵Antoine Pitrou2013-10-231-2/+2
| | | | | | | | in some C compilers.
* | Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit platforms.Serhiy Storchaka2013-08-201-1/+1
|\ \ | |/ | | | | Patch by Yogesh Chaudhari.
| * Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit platforms.Serhiy Storchaka2013-08-201-1/+1
| | | | | | | | Patch by Yogesh Chaudhari.
* | Issue #18608: Avoid keeping a strong reference to the locale module inside ↵Antoine Pitrou2013-08-011-27/+21
| | | | | | | | the _io module.
* | Issue #18112: PEP 442 implementation (safe object finalization).Antoine Pitrou2013-07-301-8/+29
| |
* | Issue #9566: _io: Use Py_SAFE_DOWNCAST for fix a compiler warning on Windows x64Victor Stinner2013-06-241-1/+1
| |
* | Merge with 3.3Andrew Kuchling2013-06-161-2/+3
|\ \ | |/
| * Describe 'surrogateescape' in the documentation.Andrew Kuchling2013-06-161-2/+3
| | | | | | | | | | | | Also, improve some docstring descriptions of the 'errors' parameter. Closes #14015.
* | Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlyingSerhiy Storchaka2013-02-031-28/+48
|\ \ | |/ | | | | | | stream or a decoder produces data of an unexpected type (i.e. when io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
| * Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlyingSerhiy Storchaka2013-02-031-28/+48
| |\ | | | | | | | | | | | | stream or a decoder produces data of an unexpected type (i.e. when io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
| | * Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlyingSerhiy Storchaka2013-02-031-18/+44
| | | | | | | | | | | | | | | stream or a decoder produces data of an unexpected type (i.e. when io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
* | | Additional fix for issue #12268: The io module file object write methods noGregory P. Smith2013-02-011-2/+5
|\ \ \ | |/ / | | | | | | longer abort early when a write system call is interrupted (EINTR).
| * | Additional fix for issue #12268: The io module file object write methods noGregory P. Smith2013-02-011-2/+5
| |\ \ | | |/ | | | | | | longer abort early when a write system call is interrupted (EINTR).
| | * Additional fix for Issue #12268: The io module file object writelines() ↵Gregory P. Smith2013-02-011-2/+5
| | | | | | | | | | | | methods no longer abort early when one of its write system calls is interrupted (EINTR).
| * | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-1/+1
| |\ \ | | |/ | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* | | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-141-1/+1
| | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks.
* | | merge 3.3 (#16597)Benjamin Peterson2012-12-201-4/+20
|\ \ \ | |/ /
| * | call close on the underlying stream even if flush raises (closes #16597)Benjamin Peterson2012-12-201-4/+20
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unifiedChristian Heimes2012-10-171-12/+6
|/ / | | | | | | endianess detection and handling.
* | #15796: merge with 3.2.Ezio Melotti2012-09-181-1/+1
|\ \ | |/