summaryrefslogtreecommitdiffstats
path: root/Modules/_io
Commit message (Collapse)AuthorAgeFilesLines
* 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 #18876: The FileIO.mode attribute now better reflects the actual mode ↵Antoine Pitrou2013-09-041-10/+13
| | | | | | under which the file was opened. Patch by Erik Bray.
* 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 #18344: Fix potential ref-leaks in _bufferedreader_read_all().Richard Oudkerk2013-07-151-48/+45
|
* Check for correct macro, code uses S_ISDIR().Christian Heimes2013-06-231-1/+1
|
* Describe 'surrogateescape' in the documentation.Andrew Kuchling2013-06-162-4/+5
| | | | | | Also, improve some docstring descriptions of the 'errors' parameter. Closes #14015.
* 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 3.2, Issue #17047: remove doubled words found in 2.7 to 3.4Terry Jan Reedy2013-03-111-1/+1
|\ | | | | | | Modules/*, as reported by Serhiy Storchaka and Matthew Barnett.
| * Issue #17047: remove doubled words found in 2.7 to 3.4 Modules/*,Terry Jan Reedy2013-03-111-1/+1
| | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
* | 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.
* | 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-012-3/+9
|\ \ | |/ | | | | 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-012-3/+9
| | | | | | | | 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-192-3/+3
|\ \ | |/ | | | | | | | | 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-192-4/+5
| | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* | (Merge 3.2) Issue #16367: Fix FileIO.readall() on Windows for files larger ↵Victor Stinner2013-01-031-2/+11
|\ \ | |/ | | | | than 2 GB.
| * Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GBVictor Stinner2013-01-031-2/+11
| |
* | call close on the underlying stream even if flush raises (closes #16597)Benjamin Peterson2012-12-202-9/+41
| | | | | | | | Patch by Serhiy Storchaka.
* | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| | | | | | | | Patch by Serhiy Storchaka.
* | #15796: merge with 3.2.Ezio Melotti2012-09-183-3/+3
|\ \ | |/
| * #15796: Fix \n in readline docstring. Patch by Serhiy Storchaka.Ezio Melotti2012-09-183-3/+3
| |
* | 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
* | Fixed out-of-bounce write to rawmode buffer. The fixed size buffer wasn't ↵Christian Heimes2012-09-101-1/+1
| | | | | | | | enlarged for the new 'x' flag. The buffer may contain the 5 flags xrwa+ and the \0 byte
* | Merge 3.2.Stefan Krah2012-09-081-1/+3
|\ \ | |/
| * Issue #15868: Fix refleak in bytesio.c (Coverity #715365).Stefan Krah2012-09-081-1/+3
| |
* | Issue #15841: The readable(), writable() and seekable() methods of BytesIOAntoine Pitrou2012-09-052-8/+31
|\ \ | |/ | | | | | | and StringIO objects now raise ValueError when the object has been closed. Patch by Alessandro Moura.
| * Issue #15841: The readable(), writable() and seekable() methods of BytesIOAntoine Pitrou2012-09-052-8/+31
| | | | | | | | | | and StringIO objects now raise ValueError when the object has been closed. Patch by Alessandro Moura.
* | 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-032-6/+6
|\ \ | |/ | | | | doesn't translate newlines on output.
| * open() / TextIOWrapper doc: make it explicit than newline='\n' doesn'tVictor Stinner2012-08-032-6/+6
| | | | | | | | 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().
* | Issue #15489: Add a __sizeof__ implementation for BytesIO objects.Antoine Pitrou2012-07-291-0/+12
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Issue #15489: Add a __sizeof__ implementation for BytesIO objects.Antoine Pitrou2012-07-291-0/+12
| | | | | | | | 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 #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.
* | Issue #15247: FileIO now raises an error when given a file descriptor ↵Antoine Pitrou2012-07-061-12/+5
|\ \ | |/ | | | | pointing to a directory.
| * Issue #15247: FileIO now raises an error when given a file descriptor ↵Antoine Pitrou2012-07-061-12/+5
| | | | | | | | pointing to a directory.
* | Fixes issue #12268: File readline, readlines and read() or readall() methodsGregory P. Smith2012-06-245-10/+49
|\ \ | |/ | | | | | | | | 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-245-8/+49
| | | | | | | | | | | | 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.
* | Closes #10142: Support for SEEK_HOLE/SEEK_DATAJesus Cea2012-06-221-3/+18
| |
* | Simplify code in fileio_initHynek Schlawack2012-06-221-2/+1
| | | | | | | | | | | | If an identical code line is in both at the end of if and else, it can as well stand after the block. :) The code is from 464cf523485e, I didn't see it before checking the commits in the web interface of course.
* | #10053: Don't close FDs when FileIO.__init__ failsHynek Schlawack2012-06-211-6/+6
|\ \ | |/ | | | | Loosely based on the work by Hirokazu Yamamoto.
| * #10053: Don't close FDs when FileIO.__init__ failsHynek Schlawack2012-06-211-6/+5
| | | | | | | | Loosely based on the work by Hirokazu Yamamoto.
* | Close #11022: TextIOWrapper doesn't call locale.setlocale() anymoreVictor Stinner2012-06-052-4/+5
| | | | | | | | | | | | | | | | | | | | 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.