summaryrefslogtreecommitdiffstats
path: root/Lib/_pyio.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22033: Reprs of most Python implemened classes now contain actualSerhiy Storchaka2014-07-251-4/+6
| | | | class name instead of hardcoded one.
* add BufferedIOBase.readinto1 (closes #20578)Benjamin Peterson2014-06-221-9/+86
| | | | Patch by Nikolaus Rath.
* Issue #21310: Fixed possible resource leak in failed open().Serhiy Storchaka2014-06-091-30/+37
|
* Close #20404: blacklist non-text encodings in io.TextIOWrapperNick Coghlan2014-02-041-0/+5
| | | | | | | | | - 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 #20435: Fix _pyio.StringIO.getvalue() to take into account newline ↵Antoine Pitrou2014-02-021-1/+7
|\ | | | | | | translation settings.
| * Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline ↵Antoine Pitrou2014-02-021-1/+7
| | | | | | | | translation settings.
* | Issue #20424: Python implementation of io.StringIO now supports lone surrogates.Serhiy Storchaka2014-01-291-1/+1
|\ \ | |/
| * Issue #20424: Python implementation of io.StringIO now supports lone surrogates.Serhiy Storchaka2014-01-291-1/+1
| |
* | Issue #15204: Deprecated the 'U' mode in file-like objects.Serhiy Storchaka2013-11-231-2/+8
| |
* | Issue #17003: Unified the size argument names in the io module with commonSerhiy Storchaka2013-09-161-81/+81
| | | | | | | | practice.
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-0/+2
| | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-2/+2
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-2/+2
| | | | | | | | ModuleNotFoundError.
* | Issue #17516: remove dead codeVictor Stinner2013-03-261-1/+0
| |
* | Merge 3.3, issue #17047: remove doubled words found in 2.7 toTerry Jan Reedy2013-03-111-1/+1
|\ \ | |/ | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
| * Merge 3.2, issue #17047: remove doubled words found in 2.7 toTerry Jan Reedy2013-03-111-1/+1
| |\ | | | | | | | | | 3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
| | * Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,Terry Jan Reedy2013-03-111-1/+1
| | | | | | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-16/+16
| | |
* | | merge 3.3 (#16597)Benjamin Peterson2012-12-201-4/+8
|\ \ \ | |/ /
| * | call close on the underlying stream even if flush raises (closes #16597)Benjamin Peterson2012-12-201-4/+8
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Issue #16706: get rid of os.errorAndrew Svetlov2012-12-181-1/+1
|/ /
* | Issue #15841: The readable(), writable() and seekable() methods of BytesIOAntoine Pitrou2012-09-051-0/+8
|\ \ | |/ | | | | | | 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-051-0/+8
| | | | | | | | | | and StringIO objects now raise ValueError when the object has been closed. Patch by Alessandro Moura.
* | Issue #15571: comment the fact what python impl of TextIOWrapper always ↵Andrew Svetlov2012-08-131-0/+3
| | | | | | | | works in write_throuth mode
* | Issue #13248: io: Remove obsolete argument "max_buffer_size" of ↵Florent Xicluna2012-07-071-18/+4
| | | | | | | | BufferedWriter and BufferedRWPair.
* | Closes #10142: Support for SEEK_HOLE/SEEK_DATAJesus Cea2012-06-221-8/+13
| |
* | 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.
* | Backing out 86dc014cdd74. Not ready yetJesus Cea2012-04-261-3/+9
| |
* | Close #10142: Support for SEEK_HOLE/SEEK_DATAJesus Cea2012-04-261-9/+3
| |
* | Issue #12760: Refer to the new 'x' open mode as "exclusive creation" mode.Charles-François Natali2012-01-141-1/+1
| |
* | Issue #12760: Add a create mode to open(). Patch by David Townshend.Charles-François Natali2012-01-091-15/+19
| |
* | Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError isAntoine Pitrou2011-11-211-24/+23
|\ \ | |/ | | | | | | | | | | 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 isAntoine Pitrou2011-11-211-26/+25
| | | | | | | | | | | | | | 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.
* | 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). ........ ................