summaryrefslogtreecommitdiffstats
path: root/Lib/_pyio.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19543: Emit deprecation warning for known non-text encodings.Serhiy Storchaka2015-05-311-0/+6
| | | | | | | | | | Backported issues #19619: encode() and decode() methods and constructors of str, unicode and bytearray classes now emit deprecation warning for known non-text encodings when Python is ran with the -3 option. Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the internal codec marking system added to emit deprecation warning for known non-text encodings at stream construction time when Python is ran with the -3 option.
* Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-241-2/+4
| | | | writer failed in BufferedRWPair.close().
* wrap properlyBenjamin Peterson2015-03-191-2/+2
|
* allow more operations to work on detached streams (closes #23093)Benjamin Peterson2014-12-221-2/+2
| | | | Patch by Martin Panter.
* Issue #21310: Fixed possible resource leak in failed open().Serhiy Storchaka2014-06-091-30/+37
|
* Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline ↵Antoine Pitrou2014-02-021-1/+7
| | | | translation settings.
* 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.
* call close on the underlying stream even if flush raises (#16597)Benjamin Peterson2012-12-201-4/+8
|
* Issue #15841: The readable(), writable() and seekable() methods of io.BytesIOAntoine Pitrou2012-09-051-0/+8
| | | | | and io.StringIO objects now raise ValueError when the object has been closed. Patch by Alessandro Moura.
* Fix typo “seperator”Éric Araujo2012-02-261-1/+1
|
* 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.
* Issue #12175: RawIOBase.readall() now returns None if read() returns None.Victor Stinner2011-05-251-1/+5
|
* 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. ........
* 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. ........
* _pyio: Fix TextIOWrapper constructor: os has no device_encoding() functionVictor Stinner2010-05-041-11/+6
| | | | _io module doesn't call this function which was introduced in Python3.
* Issue #7865: The close() method of :mod:`io` objects should not swallowAntoine Pitrou2010-05-031-14/+8
| | | | | exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon.
* correct signatureBenjamin Peterson2010-04-271-1/+1
|
* condense importBenjamin Peterson2010-04-271-2/+1
|
* fold __future__ importsBenjamin Peterson2010-04-271-2/+1
|
* fix commentBenjamin Peterson2010-04-271-1/+1
|
* reject None as the buffering argument like the C implementation does #8546Benjamin Peterson2010-04-271-4/+2
|
* Fix some py3k warnings in the standard library.Florent Xicluna2010-03-071-4/+13
|
* - Issue #6939: Fix file I/O objects in the `io` module to keep the originalAntoine Pitrou2010-01-311-5/+3
| | | | | | 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.
* Remove superfetatory paragraph (left there by mistake).Antoine Pitrou2009-12-191-5/+0
|
* Issue #7545: improve documentation of the `buffering` argument in io.open().Antoine Pitrou2009-12-191-0/+15
|
* Manual py3k backport: [svn r74158] Issue #6218: Make io.BytesIO and ↵Antoine Pitrou2009-10-241-0/+5
| | | | io.StringIO picklable.
* Issue #6215: backport the 3.1 io libAntoine Pitrou2009-06-121-0/+1962