Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when raw | Serhiy Storchaka | 2013-05-28 | 1 | -0/+9 |
| | | | | stream's read() returns more bytes than requested. | ||||
* | Issue #17835: Fix test_io when the default OS pipe buffer size is larger ↵ | Antoine Pitrou | 2013-04-24 | 1 | -2/+2 |
| | | | | than one million bytes. | ||||
* | #17479: test_io now works with unittest test discovery. Patch by Zachary Ware. | Ezio Melotti | 2013-03-23 | 1 | -3/+4 |
| | |||||
* | Merge #17275: Fix class name in init errors in C bufferedio classes. | R David Murray | 2013-02-24 | 1 | -0/+18 |
|\ | | | | | | | | | | | 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 Murray | 2013-02-24 | 1 | -0/+18 |
| | | | | | | | | | | | | This fixes an apparent copy-and-paste error. Patch by Manuel Jacob. | ||||
* | | Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying | Serhiy Storchaka | 2013-02-03 | 1 | -0/+24 |
|\ \ | |/ | | | | | | | 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 underlying | Serhiy Storchaka | 2013-02-03 | 1 | -0/+24 |
| | | | | | | | | | | 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 #15989: Fix several occurrences of integer overflow | Serhiy Storchaka | 2013-01-19 | 1 | -0/+9 |
|\ \ | |/ | | | | | | | | | 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 overflow | Serhiy Storchaka | 2013-01-19 | 1 | -0/+9 |
| | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277. | ||||
* | | call close on the underlying stream even if flush raises (closes #16597) | Benjamin Peterson | 2012-12-20 | 1 | -0/+28 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | Merge for issue #15744: add tests for the writelines() method of file objects. | Antoine Pitrou | 2012-10-16 | 1 | -1/+46 |
|\ \ | |/ | |||||
| * | Also add tests for TextIOWrapper.writelines() (issue #15744). | Antoine Pitrou | 2012-10-16 | 1 | -0/+22 |
| | | |||||
| * | Add tests for the writelines() method of file objects. | Antoine Pitrou | 2012-10-16 | 1 | -1/+24 |
| | | | | | | | | Original patch by Felipe Cruz. | ||||
* | | Added test for 85cb90f79cbf and see how the code handles all flags at once | Christian Heimes | 2012-09-10 | 1 | -0/+5 |
| | | |||||
* | | Issue #15487: Add a __sizeof__ implementation for buffered I/O objects. | Antoine Pitrou | 2012-07-29 | 1 | -3/+17 |
|\ \ | |/ | | | | | Patch by Serhiy Storchaka. | ||||
| * | Issue #15487: Add a __sizeof__ implementation for buffered I/O objects. | Antoine Pitrou | 2012-07-29 | 1 | -3/+17 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | Issue #13248: io: Remove obsolete argument "max_buffer_size" of ↵ | Florent Xicluna | 2012-07-07 | 1 | -6/+4 |
| | | | | | | | | BufferedWriter and BufferedRWPair. | ||||
* | | Backout change e8f44ebacda7052267318cecf5b6f128d35add17. Reverting the test | Gregory P. Smith | 2012-06-25 | 1 | -5/+5 |
|\ \ | |/ | | | | | | | | | | | | | to using signal.alarm(1) instead of signal.setitimer(signal.ITIMER_REAL, 0.1). This is an attempt to see if this change is what caused the ubuntu arm buildbot to hang in test_io's test_interrupted_write_retry_text. Discussion in Issue #12268. | ||||
| * | Backout change e8f44ebacda7052267318cecf5b6f128d35add17. Reverting the test | Gregory P. Smith | 2012-06-25 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | to using signal.alarm(1) instead of signal.setitimer(signal.ITIMER_REAL, 0.1). This is an attempt to see if this change is what caused the ubuntu arm buildbot to hang in test_io's test_interrupted_write_retry_text. Discussion in Issue #12268. | ||||
* | | Fixes issue #12268: File readline, readlines and read() or readall() methods | Gregory P. Smith | 2012-06-24 | 1 | -5/+5 |
|\ \ | |/ | | | | | | | | | 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. | ||||
| * | Speed up test_io by >2x by reducing the sleep time using setitimer instead of | Gregory P. Smith | 2012-06-24 | 1 | -5/+5 |
| | | | | | | | | alarm for the signal tests. | ||||
* | | Closes #10142: Support for SEEK_HOLE/SEEK_DATA | Jesus Cea | 2012-06-22 | 1 | -1/+1 |
| | | |||||
* | | Close #11022: TextIOWrapper doesn't call locale.setlocale() anymore | Victor Stinner | 2012-06-05 | 1 | -8/+27 |
| | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | #4841: Fix FileIO constructor to honor closefd when called repeatedly | Hynek Schlawack | 2012-05-25 | 1 | -0/+13 |
|\ \ | |/ | | | | | Patch by Victor Stinner. | ||||
| * | #4841: Fix FileIO constructor to honor closefd when called repeatedly | Hynek Schlawack | 2012-05-25 | 1 | -0/+13 |
| | | | | | | | | Patch by Victor Stinner. | ||||
* | | Issue #13848: open() and the FileIO constructor now check for NUL characters ↵ | Antoine Pitrou | 2012-01-29 | 1 | -0/+5 |
|\ \ | |/ | | | | | | | | | in the file name. Patch by Hynek Schlawack. | ||||
| * | Issue #13848: open() and the FileIO constructor now check for NUL characters ↵ | Antoine Pitrou | 2012-01-29 | 1 | -0/+5 |
| | | | | | | | | | | | | in the file name. Patch by Hynek Schlawack. | ||||
* | | Issue #12760: Add a create mode to open(). Patch by David Townshend. | Charles-François Natali | 2012-01-09 | 1 | -0/+13 |
| | | |||||
* | | Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is | Antoine Pitrou | 2011-11-21 | 1 | -4/+76 |
|\ \ | |/ | | | | | | | | | | | raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt. | ||||
| * | Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is | Antoine Pitrou | 2011-11-21 | 1 | -4/+74 |
| | | | | | | | | | | | | | | raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt. | ||||
* | | Issue #12797: Added custom opener parameter to builtin open() and FileIO.open(). | Ross Lagerwall | 2011-10-31 | 1 | -0/+9 |
| | | |||||
* | | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy. | Antoine Pitrou | 2011-10-12 | 1 | -6/+0 |
| | | |||||
* | | Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle | Charles-François Natali | 2011-10-05 | 1 | -0/+15 |
|\ \ | |/ | | | | | | | would be finalized after the reference to its underlying BufferedRWPair's writer got cleared by the GC. | ||||
| * | Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle | Charles-François Natali | 2011-10-05 | 1 | -0/+15 |
| | | | | | | | | | | would be finalized after the reference to its underlying BufferedRWPair's writer got cleared by the GC. | ||||
* | | Issue #13087: BufferedReader.seek() now always raises UnsupportedOperation | Antoine Pitrou | 2011-10-04 | 1 | -0/+8 |
|\ \ | |/ | | | | | | | if the underlying raw stream is unseekable, even if the seek could be satisfied using the internal buffer. Patch by John OConnor. | ||||
| * | Issue #13087: BufferedReader.seek() now always raises UnsupportedOperation | Antoine Pitrou | 2011-10-04 | 1 | -0/+8 |
| | | | | | | | | | | if the underlying raw stream is unseekable, even if the seek could be satisfied using the internal buffer. Patch by John O'Connor. | ||||
* | | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). | Ezio Melotti | 2011-09-28 | 1 | -2/+2 |
| | | |||||
* | | merge 3.2 (#12878) | Benjamin Peterson | 2011-09-03 | 1 | -0/+11 |
|\ \ | |/ | |||||
| * | add a __dict__ descr for IOBase (closes #12878) | Benjamin Peterson | 2011-09-03 | 1 | -0/+11 |
| | | |||||
* | | Issue #12213: Fix a buffering bug with interleaved reads and writes that | Antoine Pitrou | 2011-08-20 | 1 | -2/+42 |
|\ \ | |/ | | | | | could appear on BufferedRandom streams. | ||||
| * | Issue #12213: Fix a buffering bug with interleaved reads and writes that | Antoine Pitrou | 2011-08-20 | 1 | -2/+42 |
| | | | | | | | | could appear on BufferedRandom streams. | ||||
* | | Fix typo in test names | Antoine Pitrou | 2011-08-19 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | Fix typo in test names | Antoine Pitrou | 2011-08-19 | 1 | -4/+4 |
| | | |||||
* | | Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (without | Antoine Pitrou | 2011-07-23 | 1 | -0/+21 |
|\ \ | |/ | | | | | | | a read1() method), and add a *write_through* parameter to mandate unbuffered writes. | ||||
| * | Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (without | Antoine Pitrou | 2011-07-23 | 1 | -0/+21 |
| | | | | | | | | | | a read1() method), and add an undocumented *write_through* parameter to mandate unbuffered writes. | ||||
* | | Issue #12149: Update the method cache after a type's dictionnary gets | Antoine Pitrou | 2011-07-12 | 1 | -1/+18 |
|\ \ | |/ | | | | | | | | | | | | | | | cleared by the garbage collector. This fixes a segfault when an instance and its type get caught in a reference cycle, and the instance's deallocator calls one of the methods on the type (e.g. when subclassing IOBase). Diagnosis and patch by Davide Rizzo. | ||||
| * | Issue #12149: Update the method cache after a type's dictionnary gets | Antoine Pitrou | 2011-07-12 | 1 | -1/+18 |
| | | | | | | | | | | | | | | | | | | cleared by the garbage collector. This fixes a segfault when an instance and its type get caught in a reference cycle, and the instance's deallocator calls one of the methods on the type (e.g. when subclassing IOBase). Diagnosis and patch by Davide Rizzo. | ||||
| * | Issue #12429: Skip interrupted write tests on FreeBSD <= 7 | Victor Stinner | 2011-07-04 | 1 | -0/+2 |
| | | | | | | | | On FreeBSD, the SIGALRM signal is sometimes received by the reader thread. | ||||
* | | Issue #12196: Add PIPE_MAX_SIZE to test.support, constant larger than the | Charles-François Natali | 2011-05-29 | 1 | -1/+1 |
| | | | | | | | | underlying OS pipe buffer size. | ||||
* | | (Merge 3.2) Issue #12175: RawIOBase.readall() now returns None if read() | Victor Stinner | 2011-05-25 | 1 | -2/+5 |
|\ \ | |/ | | | | | returns None. |