summaryrefslogtreecommitdiffstats
path: root/Lib/_pyio.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge follow-up for #11254 and other changes from 3.2Éric Araujo2011-11-031-1/+1
|\
| * Fix typoÉric Araujo2011-11-021-1/+1
| |
* | Issue #12797: Added custom opener parameter to builtin open() and FileIO.open().Ross Lagerwall2011-10-311-2/+8
| |
* | Use InterruptedError instead of checking for EINTRAntoine Pitrou2011-10-231-13/+4
| |
* | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.Antoine Pitrou2011-10-121-10/+2
| |
* | Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (withoutAntoine Pitrou2011-07-231-2/+6
|\ \ | |/ | | | | | | a read1() method), and add a *write_through* parameter to mandate unbuffered writes.
| * Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (withoutAntoine Pitrou2011-07-231-2/+6
| | | | | | | | | | a read1() method), and add an undocumented *write_through* parameter to mandate unbuffered writes.
* | Issue #12175: BufferedReader.read(-1) now calls raw.readall() if available.Victor Stinner2011-05-251-0/+6
| |
* | (Merge 3.2) Issue #12175: RawIOBase.readall() now returns None if read()Victor Stinner2011-05-251-1/+5
|\ \ | |/ | | | | returns None.
| * (Merge 3.1) Issue #12175: RawIOBase.readall() now returns None if read()Victor Stinner2011-05-251-1/+5
| |\ | | | | | | | | | returns None.
| | * Issue #12175: RawIOBase.readall() now returns None if read() returns None.Victor Stinner2011-05-251-1/+5
| | |
| | * Backport 87978: Do not expose function type annotations in the standard library.Raymond Hettinger2011-01-121-31/+32
| | |
| | * Merged revisions 87427 via svnmerge fromAntoine Pitrou2010-12-211-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87427 | antoine.pitrou | 2010-12-21 22:20:59 +0100 (mar., 21 déc. 2010) | 3 lines Issue #10750: The `raw` attribute of buffered IO objects is now read-only. ........
| | * Merged revisions 84814 via svnmerge fromAntoine Pitrou2010-09-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84814 | antoine.pitrou | 2010-09-14 20:37:24 +0200 (mar., 14 sept. 2010) | 4 lines Issue #9854: The default read() implementation in io.RawIOBase now handles non-blocking readinto() returning None correctly. ........
| | * Merged revisions 80722 via svnmerge fromAntoine Pitrou2010-05-031-14/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80722 | antoine.pitrou | 2010-05-03 18:48:20 +0200 (lun., 03 mai 2010) | 11 lines Merged revisions 80720 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80720 | antoine.pitrou | 2010-05-03 18:25:33 +0200 (lun., 03 mai 2010) | 5 lines Issue #7865: The close() method of :mod:`io` objects should not swallow exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon. ........ ................
| | * Merged revisions 77895-77896 via svnmerge fromAntoine Pitrou2010-01-311-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77895 | antoine.pitrou | 2010-01-31 23:47:27 +0100 (dim., 31 janv. 2010) | 12 lines Merged revisions 77890 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77890 | antoine.pitrou | 2010-01-31 23:26:04 +0100 (dim., 31 janv. 2010) | 7 lines - Issue #6939: Fix file I/O objects in the `io` module to keep the original file position when calling `truncate()`. It would previously change the file position to the given argument, which goes against the tradition of ftruncate() and other truncation APIs. Patch by Pascal Chambon. ........ ................ r77896 | antoine.pitrou | 2010-02-01 00:12:29 +0100 (lun., 01 févr. 2010) | 3 lines r77895 broke doctest. ................
| | * Merged revisions 76900 via svnmerge fromAntoine Pitrou2009-12-191-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r76900 | antoine.pitrou | 2009-12-19 22:08:31 +0100 (sam., 19 déc. 2009) | 13 lines Merged revisions 76896,76898 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76896 | antoine.pitrou | 2009-12-19 22:01:10 +0100 (sam., 19 déc. 2009) | 3 lines Issue #7545: improve documentation of the `buffering` argument in io.open(). ........ r76898 | antoine.pitrou | 2009-12-19 22:06:36 +0100 (sam., 19 déc. 2009) | 3 lines Remove superfetatory paragraph (left there by mistake). ........ ................
| | * Merged revisions 74126,74130-74131,74149,74155,74157,74180-74183,74398 via ↵Georg Brandl2009-08-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge from svn+ssh://svn.python.org/python/branches/py3k ................ r74126 | alexandre.vassalotti | 2009-07-21 02:39:03 +0200 (Di, 21 Jul 2009) | 14 lines Merged revisions 73871 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73871 | alexandre.vassalotti | 2009-07-06 22:17:30 -0400 (Mon, 06 Jul 2009) | 7 lines Grow the allocated buffer in PyUnicode_EncodeUTF7 to avoid buffer overrun. Without this change, test_unicode.UnicodeTest.test_codecs_utf7 crashes in debug mode. What happens is the unicode string u'\U000abcde' with a length of 1 encodes to the string '+2m/c3g-' of length 8. Since only 5 bytes is reserved in the buffer, a buffer overrun occurs. ........ ................ r74130 | alexandre.vassalotti | 2009-07-21 02:57:50 +0200 (Di, 21 Jul 2009) | 2 lines Add ignore rule for the Doc/tools/jinga2/ directory. ................ r74131 | alexandre.vassalotti | 2009-07-21 04:51:58 +0200 (Di, 21 Jul 2009) | 13 lines Merged revisions 73683,73786 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73683 | georg.brandl | 2009-06-29 10:44:49 -0400 (Mon, 29 Jun 2009) | 1 line Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython sprint. ........ r73786 | benjamin.peterson | 2009-07-02 18:56:16 -0400 (Thu, 02 Jul 2009) | 1 line condense with assertRaises ........ ................ r74149 | ezio.melotti | 2009-07-21 22:37:52 +0200 (Di, 21 Jul 2009) | 9 lines Merged revisions 74148 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r74148 | ezio.melotti | 2009-07-21 23:18:27 +0300 (Tue, 21 Jul 2009) | 1 line #6536 fixed typo ........ ................ r74155 | alexandre.vassalotti | 2009-07-22 04:24:49 +0200 (Mi, 22 Jul 2009) | 2 lines Issue #6242: Fix deallocator of io.StringIO and io.BytesIO. ................ r74157 | alexandre.vassalotti | 2009-07-22 05:07:33 +0200 (Mi, 22 Jul 2009) | 2 lines Issue #6241: Better type checking for the arguments of io.StringIO. ................ r74180 | ezio.melotti | 2009-07-22 23:17:14 +0200 (Mi, 22 Jul 2009) | 9 lines Merged revisions 74179 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r74179 | ezio.melotti | 2009-07-23 00:08:49 +0300 (Thu, 23 Jul 2009) | 1 line #6423 has_key -> in ........ ................ r74181 | alexandre.vassalotti | 2009-07-22 23:27:53 +0200 (Mi, 22 Jul 2009) | 6 lines Clean up test_curses. By using __stdout__ directly, test_curses caused regrtest.py to duplicate the output of some test results. ................ r74182 | alexandre.vassalotti | 2009-07-22 23:29:01 +0200 (Mi, 22 Jul 2009) | 2 lines Use assertGreater instead of assertTrue(x > y). ................ r74183 | alexandre.vassalotti | 2009-07-23 01:27:17 +0200 (Do, 23 Jul 2009) | 4 lines Specialize assertTrue checks when possible. We should get slightly more helpful failure messages with this change. ................ r74398 | georg.brandl | 2009-08-13 11:16:39 +0200 (Do, 13 Aug 2009) | 1 line #6694: fix old function names. ................
| * | Merged revisions 88610 via svnmerge fromAntoine Pitrou2011-02-251-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88610 | antoine.pitrou | 2011-02-25 22:24:11 +0100 (ven., 25 févr. 2011) | 4 lines Issue #10956: Buffered I/O classes retry reading or writing after a signal has arrived and the handler returned successfully. ........
* | | Issue #10956: Buffered I/O classes retry reading or writing after a signalAntoine Pitrou2011-02-251-4/+27
| | | | | | | | | | | | has arrived and the handler returned successfully.
* | | Issue #11114: Fix catastrophic performance of tell() on text files (upAntoine Pitrou2011-02-251-8/+50
|/ / | | | | | | | | to 1000x faster in some cases). It is still one to two order of magnitudes slower than binary tell().
* | Issue #10899: Move function type annotations into docstrings.Raymond Hettinger2011-01-131-30/+36
| | | | | | | | | | Note, the docstrings (for the most part) were already very thorough and included type information.
* | More PEP 8: no space around "=" in argument lists.Georg Brandl2011-01-131-11/+10
| |
* | Issue 10899: Remove function type annotations from the stdlibRaymond Hettinger2011-01-131-1/+1
| |
* | Issue #10899: No function type annotations in the standard library.Raymond Hettinger2011-01-121-31/+31
| | | | | | | | Removed function type annotations from _pyio.py.
* | Issue #10872: The repr() of TextIOWrapper objects now includes the modeAntoine Pitrou2011-01-091-3/+10
| | | | | | | | | | | | if available. (at Georg's request)
* | Issue #10750: The `raw` attribute of buffered IO objects is now read-only.Antoine Pitrou2010-12-211-6/+14
| |
* | Issue #10180: Pickling file objects is now explicitly forbidden, sinceAntoine Pitrou2010-11-051-0/+4
| | | | | | | | unpickling them produced nonsensical results.
* | Issue #9854: The default read() implementation in io.RawIOBase nowAntoine Pitrou2010-09-141-1/+3
| | | | | | | | handles non-blocking readinto() returning None correctly.
* | More docstring updatesAmaury Forgeot d'Arc2010-09-061-1/+2
| |
* | Change docstrings to match the implementationAmaury Forgeot d'Arc2010-09-061-6/+6
| |
* | Issue #5506: BytesIO objects now have a getbuffer() method exporting aAntoine Pitrou2010-09-061-0/+5
| | | | | | | | | | view of their contents without duplicating them. The view is both readable and writable.
* | Issue #9293: I/O streams now raise `io.UnsupportedOperation` when anAntoine Pitrou2010-09-051-13/+17
| | | | | | | | | | unsupported operation is attempted (for example, writing to a file open only for reading).
* | Merged revisions 80720 via svnmerge fromAntoine Pitrou2010-05-031-14/+8
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80720 | antoine.pitrou | 2010-05-03 18:25:33 +0200 (lun., 03 mai 2010) | 5 lines Issue #7865: The close() method of :mod:`io` objects should not swallow exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon. ........
* | Merged revisions 80548-80549 via svnmerge fromBenjamin Peterson2010-04-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80548 | benjamin.peterson | 2010-04-27 16:18:30 -0500 (Tue, 27 Apr 2010) | 1 line condense import ........ r80549 | benjamin.peterson | 2010-04-27 16:19:06 -0500 (Tue, 27 Apr 2010) | 1 line correct signature ........
* | Merged revisions 80544 via svnmerge fromBenjamin Peterson2010-04-271-4/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80544 | benjamin.peterson | 2010-04-27 16:01:54 -0500 (Tue, 27 Apr 2010) | 1 line reject None as the buffering argument like the C implementation does #8546 ........
* | Only the parts which are relevant for 3.x branch.Florent Xicluna2010-03-131-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 78757-78758,78769,78815 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78757 | florent.xicluna | 2010-03-07 13:14:25 +0100 (dim, 07 mar 2010) | 2 lines Fix some py3k warnings in the standard library. ........ r78758 | florent.xicluna | 2010-03-07 13:18:33 +0100 (dim, 07 mar 2010) | 4 lines Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings. ........ r78769 | florent.xicluna | 2010-03-07 20:14:12 +0100 (dim, 07 mar 2010) | 2 lines Refresh the documentation for the test.test_support module. ........ r78815 | florent.xicluna | 2010-03-09 20:57:01 +0100 (mar, 09 mar 2010) | 2 lines #7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag. ........
* | Merged revisions 77890 via svnmerge fromAntoine Pitrou2010-01-311-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77890 | antoine.pitrou | 2010-01-31 23:26:04 +0100 (dim., 31 janv. 2010) | 7 lines - Issue #6939: Fix file I/O objects in the `io` module to keep the original file position when calling `truncate()`. It would previously change the file position to the given argument, which goes against the tradition of ftruncate() and other truncation APIs. Patch by Pascal Chambon. ........
* | Merged revisions 76896,76898 via svnmerge fromAntoine Pitrou2009-12-191-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76896 | antoine.pitrou | 2009-12-19 22:01:10 +0100 (sam., 19 déc. 2009) | 3 lines Issue #7545: improve documentation of the `buffering` argument in io.open(). ........ r76898 | antoine.pitrou | 2009-12-19 22:06:36 +0100 (sam., 19 déc. 2009) | 3 lines Remove superfetatory paragraph (left there by mistake). ........
* | Issue #6218: Make io.BytesIO and io.StringIO picklable.Alexandre Vassalotti2009-07-221-0/+5
| |
* | Issue #6241: Better type checking for the arguments of io.StringIO.Alexandre Vassalotti2009-07-221-1/+3
|/
* give the C implementation of TextIOWrapper the errors property #6217Benjamin Peterson2009-06-061-0/+11
|
* Issue #5761: Add the name of the underlying file to the repr() of various IO ↵Antoine Pitrou2009-05-231-1/+16
| | | | objects.
* Issue #5006: Better handling of unicode byte-order marks (BOM) in the io ↵Antoine Pitrou2009-05-141-0/+20
| | | | | | | | library. This means, for example, that opening an UTF-16 text file in append mode doesn't add a BOM at the end of the file if the file isn't empty.
* implement a detach() method for BufferedIOBase and TextIOBase #5883Benjamin Peterson2009-05-011-6/+45
|
* readline() args must be an int #3521Benjamin Peterson2009-04-241-0/+4
|
* Issue #5734: BufferedRWPair was poorly tested and had several glaring bugs.Antoine Pitrou2009-04-191-4/+13
| | | | Patch by Brian Quinlan.
* add annotations to open()Benjamin Peterson2009-04-181-2/+3
|
* other places like this just catch IOErrorBenjamin Peterson2009-04-141-1/+1
|
* Fix test_memoryio under WindowsAntoine Pitrou2009-04-041-0/+4
|