summaryrefslogtreecommitdiffstats
path: root/Modules/_io/_iomodule.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Issue #24001: Argument Clinic converters now use accept={type}Larry Hastings2015-05-041-4/+4
| | | | | | | | instead of types={'type'} to specify the types the converter accepts.
* | Issue #20175: Converted the _io module to Argument Clinic.Serhiy Storchaka2015-04-161-139/+139
| |
* | Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-081-13/+2
|\ \ | |/ | | | | _PyErr_ChainExceptions() function.
| * Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-081-13/+2
| | | | | | | | _PyErr_ChainExceptions() function.
| * properly decref the return value of close()Benjamin Peterson2014-07-051-3/+5
| |
* | properly decref the return value of close()Benjamin Peterson2014-07-051-3/+5
| |
* | Issue #21679: Prevent extraneous fstat() calls during open(). Patch by ↵Antoine Pitrou2014-06-301-19/+9
|/ | | | Bohuslav Kabrda.
* PyErr_NormalizeException doesn't like being called with an exception setSerhiy Storchaka2014-06-111-4/+4
| | | | (issues #21677, #21310).
* Issue #21310: Fixed possible resource leak in failed open().Serhiy Storchaka2014-06-091-9/+27
|
* Issue #20037: Avoid crashes when doing text I/O late at interpreter shutdown.Antoine Pitrou2013-12-211-0/+14
|
* Issue #15204: Deprecated the 'U' mode in file-like objects.Serhiy Storchaka2013-11-231-2/+8
|
* Issue #9548: Add a minimal "_bootlocale" module that is imported by the _io ↵Antoine Pitrou2013-10-111-1/+1
| | | | module instead of the full locale module.
* Issue #18608: Avoid keeping a strong reference to the locale module inside ↵Antoine Pitrou2013-08-011-0/+25
| | | | the _io module.
* Describe 'surrogateescape' in the documentation.Andrew Kuchling2013-06-161-2/+2
| | | | | | Also, improve some docstring descriptions of the 'errors' parameter. Closes #14015.
* 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-181-1/+1
|\ \ | |/
| * #15796: Fix \n in readline docstring. Patch by Serhiy Storchaka.Ezio Melotti2012-09-181-1/+1
| |
* | 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) open() / TextIOWrapper doc: make it explicit than newline='\n'Victor Stinner2012-08-031-3/+3
|\ \ | |/ | | | | doesn't translate newlines on output.
| * open() / TextIOWrapper doc: make it explicit than newline='\n' doesn'tVictor Stinner2012-08-031-3/+3
| | | | | | | | translate newlines on output.
* | Close #11022: TextIOWrapper doesn't call locale.setlocale() anymoreVictor Stinner2012-06-051-2/+3
| | | | | | | | | | | | | | | | | | | | 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.
* | Issue #14153 Create _Py_device_encoding() to prevent _io from having to importBrett Cannon2012-02-291-11/+3
| | | | | | | | the os module.
* | Merge 3.2Éric Araujo2012-02-261-1/+1
|\ \ | |/
| * Fix typo in “seperat{or,ion}”Éric Araujo2012-02-261-1/+1
| |
* | Merge refleak fixes from 3.2Antoine Pitrou2012-01-181-54/+41
|\ \ | |/
| * Fix the _io module leaking references when a sub-interpreter is created.Antoine Pitrou2012-01-181-48/+36
| |
* | Issue #12760: Add a create mode to open(). Patch by David Townshend.Charles-François Natali2012-01-091-11/+17
| |
* | Replace {Get,Set,Has}AttrString with *AttrId.Martin v. Löwis2011-10-141-1/+2
| |
* | Issue #12797: Added custom opener parameter to builtin open() and FileIO.open().Ross Lagerwall2011-10-311-6/+12
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-2/+2
| |
* | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.Antoine Pitrou2011-10-121-86/+5
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-2/+5
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Issue #12175: BufferedReader.read(-1) now calls raw.readall() if available.Victor Stinner2011-05-251-0/+3
|/
* In open(), only set the buffer size from st.st_blksize when it is greaterAntoine Pitrou2010-10-271-1/+1
| | | | | than 1. This matches the pure Python implementation in _pyio and should fix a couple of failures on the NetBSD buildbot.
* Issue #5506: BytesIO objects now have a getbuffer() method exporting aAntoine Pitrou2010-09-061-0/+2
| | | | | view of their contents without duplicating them. The view is both readable and writable.
* #9184: fix default value for "buffering" param of open().Georg Brandl2010-07-111-1/+1
|
* #7417: add signature to open() docstring.Georg Brandl2009-12-231-0/+3
|
* 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). ........
* Merged revisions 76805 via svnmerge fromBenjamin Peterson2009-12-131-0/+26
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76805 | benjamin.peterson | 2009-12-13 13:19:07 -0600 (Sun, 13 Dec 2009) | 7 lines accept None as the same as having passed no argument in file types #7349 This is for consistency with imitation file objects like StringIO and BytesIO. This commit also adds a few tests, where they were lacking for concerned methods. ........
* move to a naming scheme with all lowercase and underscoresBenjamin Peterson2009-06-121-4/+4
|
* Issue #5006: Better handling of unicode byte-order marks (BOM) in the io ↵Antoine Pitrou2009-05-141-0/+6
| | | | | | | | 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.
* fix typo #5687Benjamin Peterson2009-04-051-1/+1
|
* Issue 5682: Move _io module into its own subdirectory.Alexandre Vassalotti2009-04-041-0/+760
Reviewed by: Antoine Pitrou