summaryrefslogtreecommitdiffstats
path: root/Modules/_io/_iomodule.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)Serhiy Storchaka2017-04-161-4/+4
|
* bpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716)Serhiy Storchaka2017-03-301-24/+0
| | | if pass `accept={int, NoneType}`.
* bpo-29878: Add global instances of int for 0 and 1. (#852)Serhiy Storchaka2017-03-301-4/+0
|
* bpo-29730: replace some calls to PyNumber_Check and improve some error ↵Oren Milman2017-03-121-3/+4
| | | | messages (#650)
* bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485)Serhiy Storchaka2017-03-121-2/+2
|
* Merge from 3.5.Serhiy Storchaka2016-12-071-1/+1
|\
| * Change order of io.UnsupportedOperation base classes.Serhiy Storchaka2016-12-071-1/+1
| | | | | | | | This makes tests passing after changes by issue #5322.
* | Issue #1602: Windows console doesn't input or print Unicode (PEP 528)Steve Dower2016-08-311-3/+21
| | | | | | | | Closes #17602: Adds a readline implementation for the Windows console
* | - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-2/+2
|\ \ | |/ | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-2/+2
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | issue27186: add open/io.open; patch by Jelle ZijlstraEthan Furman2016-06-041-16/+32
| |
* | Issue #25523: Merge a-to-an corrections from 3.5Martin Panter2015-11-021-1/+1
|\ \ | |/
| * Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
| |\
| | * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | | Issue #15989: Fixed some scarcely probable integer overflows.Serhiy Storchaka2015-09-061-1/+2
| | | | | | | | | | | | It is very unlikely that they can occur in real code for now.
* | | - Issue #2091: error correctly on open() with mode 'U' and '+'Robert Collins2015-07-251-8/+8
|/ / | | | | | | | | open() accepted a 'U' mode string containing '+', but 'U' can only be used with 'r'. Patch from Jeff Balogh and John O'Connor.
* | 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
|/