summaryrefslogtreecommitdiffstats
path: root/Modules/_io/textio.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \ | |/
| * #15796: Fix \n in readline docstring. Patch by Serhiy Storchaka.Ezio Melotti2012-09-181-1/+1
| |
* | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou2012-08-151-1/+4
|\ \ | |/ | | | | | | | | errors correctly. Patch by Serhiy Storchaka.
| * Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou2012-08-151-1/+4
| | | | | | | | | | | | errors correctly. Patch by Serhiy Storchaka.
* | (Merge 3.2) open() / TextIOWrapper doc: make it explicit than newline='\n'Victor Stinner2012-08-031-3/+3
|\ \ | |/ | | | | doesn't translate newlines on output.
| * open() / TextIOWrapper doc: make it explicit than newline='\n' doesn'tVictor Stinner2012-08-031-3/+3
| | | | | | | | translate newlines on output.
* | Make TextIOWrapper's documentation clearer by copying the newline argument's ↵Antoine Pitrou2012-08-031-9/+16
|\ \ | |/ | | | | description from open().
| * Make TextIOWrapper's documentation clearer by copying the newline argument's ↵Antoine Pitrou2012-08-031-9/+16
| | | | | | | | description from open().
* | Fixes issue #12268: File readline, readlines and read() or readall() methodsGregory P. Smith2012-06-241-2/+14
|\ \ | |/ | | | | | | | | 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() methodsGregory P. Smith2012-06-241-2/+14
| | | | | | | | | | | | 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.
* | Close #11022: TextIOWrapper doesn't call locale.setlocale() anymoreVictor Stinner2012-06-051-2/+2
| | | | | | | | | | | | | | | | | | | | open() and io.TextIOWrapper are now calling locale.getpreferredencoding(False) instead of locale.getpreferredencoding() in text mode if the encoding is not specified. Don't change temporary the locale encoding using locale.setlocale(), use the current locale encoding instead of the user preferred encoding. Explain also in open() documentation that locale.getpreferredencoding(False) is called if the encoding is not specified.
* | Don't Py_DECREF NULL variable in io.IncrementalNewlineDecoder.Ross Lagerwall2012-04-071-1/+1
| | | | | | | | Found with Clang's Static Analyzer.
* | Issue #14153 Create _Py_device_encoding() to prevent _io from having to importBrett Cannon2012-02-291-4/+7
| | | | | | | | the os module.
* | Merge 3.2Éric Araujo2012-02-261-1/+1
|\ \ | |/
| * Fix typo in “seperat{or,ion}”Éric Araujo2012-02-261-1/+1
| |
* | Fix compiler warningsVictor Stinner2011-11-221-1/+1
| |
* | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()Victor Stinner2011-11-211-2/+2
| | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength()
* | Issue #13393: In TextIOWrapper.read(n), try to read `n` characters asAntoine Pitrou2011-11-181-5/+9
| | | | | | | | once rather than limit ourselves to the default chunk size.
* | Restore performance of special casings for utf-16 and utf-32 in TextIOWrapperAntoine Pitrou2011-11-131-18/+12
| |