summaryrefslogtreecommitdiffstats
path: root/Modules/_io
Commit message (Collapse)AuthorAgeFilesLines
* Merge from 3.6Steve Dower2017-02-051-1/+13
|\
| * Adds precheck for console filename to fix Windows 7.Steve Dower2017-02-051-1/+13
| |
* | Merge issue #28164 and issue #29409Steve Dower2017-02-042-37/+51
|\ \ | |/
| * Issue #28164: Correctly handle special console filenames (patch by Eryk Sun)Steve Dower2017-02-041-20/+47
| |
| * Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun)Steve Dower2017-02-041-17/+14
| |
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-231-4/+2
| | | | | | | | possible. Patch is writen with Coccinelle.
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-175-38/+82
| | | | | | | | | | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using "boring" positional arguments. Manually fix _elementtree: _elementtree_XMLParser_doctype() must remain consistent with the clinic code.
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-178-56/+120
| | | | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using only positional arguments.
* | Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywordsVictor Stinner2017-01-172-2/+2
| | | | | | | | Issue #29286.
* | Merge doc fixes from 3.6Martin Panter2017-01-141-1/+1
|\ \ | |/
| * Merge doc fixes from 3.5Martin Panter2017-01-141-1/+1
| |\
| | * Fix grammar, typos and markup in documentation and code commentsMartin Panter2017-01-141-1/+1
| | | | | | | | | | | | | | | | | | * Indent versionchanged at method level, not class level * Mark up ``--help`` to avoid generating an en dash * Use forward slash in Unix command line with a dollar sign ($) prompt
* | | Issue #28768: Fix implicit declaration of function _setmode. Patch by ↵Steve Dower2016-12-281-0/+3
|\ \ \ | |/ / | | | | | | Masayuki Yamamoto
| * | Issue #28768: Fix implicit declaration of function _setmode. Patch by ↵Steve Dower2016-12-281-0/+3
| | | | | | | | | | | | Masayuki Yamamoto
* | | Use _PyObject_CallMethodIdObjArgs() in _ioVictor Stinner2016-12-095-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() when the format string was only made of "O" formats, PyObject* arguments. _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string.
* | | Use _PyObject_CallMethodIdObjArgs()Victor Stinner2016-12-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() when the format string only use the format 'O' for objects, like "(O)". _PyObject_CallMethodIdObjArgs() avoids the code to parse a format string and avoids the creation of a temporary tuple.
* | | Merge from 3.6.Serhiy Storchaka2016-12-071-1/+1
|\ \ \ | |/ /
| * | 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.
* | | Added the const qualifier to char* variables that refer to readonly internalSerhiy Storchaka2016-11-202-2/+2
| | | | | | | | | | | | UTF-8 represenatation of Unicode objects.
* | | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka2016-11-202-3/+3
|\ \ \ | |/ / | | | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
| * | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka2016-11-202-3/+3
| | | | | | | | | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
* | | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-162-4/+4
|\ \ \ | |/ / | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
| * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-162-4/+4
| |\ \ | | |/ | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
| | * Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-1/+1
| | | | | | | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
* | | Issue #28387: Fixed possible crash in _io.TextIOWrapper deallocator whenSerhiy Storchaka2016-11-031-12/+5
|\ \ \ | |/ / | | | | | | | | | the garbage collector is invoked in other thread. Based on patch by Sebastian Cufre.
| * | Issue #28387: Fixed possible crash in _io.TextIOWrapper deallocator whenSerhiy Storchaka2016-11-031-12/+5
| |\ \ | | |/ | | | | | | | | | the garbage collector is invoked in other thread. Based on patch by Sebastian Cufre.
| | * Issue #28387: Fixed possible crash in _io.TextIOWrapper deallocator whenSerhiy Storchaka2016-11-031-12/+5
| | | | | | | | | | | | | | | the garbage collector is invoked in other thread. Based on patch by Sebastian Cufre.
* | | Issue #23214: Implement optional BufferedReader, BytesIO read1() argumentMartin Panter2016-10-204-18/+37
|/ /
* | Issue #28162: Fixes Ctrl+Z handling in console readall()Steve Dower2016-10-081-20/+29
| |
* | Issue #28217: Adds _testconsole module to test console input. Fixes some ↵Steve Dower2016-10-032-12/+45
| | | | | | | | issues found by the tests.
* | Issue #28277: remove linefeed character from iomodule.h. Patch by Michael FeltChristian Heimes2016-09-261-1/+1
| |
* | merge 3.5 (#28184)Benjamin Peterson2016-09-201-6/+6
|\ \ | |/
| * Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1
| |
* | Issue #28161: Opening CON for write access failsSteve Dower2016-09-171-14/+31
| | | | | | | | | | | | Issue #28162: WindowsConsoleIO readall() fails if first line starts with Ctrl+Z Issue #28163: WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle Issue #28164: _PyIO_get_console_type fails for various paths
* | Issue #27810: Regenerate Argument Clinic.Serhiy Storchaka2016-09-112-8/+8
| |
* | Issue #1602: Windows console doesn't input or print Unicode (PEP 528)Steve Dower2016-08-314-3/+1458
| | | | | | | | Closes #17602: Adds a readline implementation for the Windows console
* | Issue #23524: Finish removing _PyVerify_fd from sourcesSteve Dower2016-09-081-26/+13
| |
* | more PY_LONG_LONG to long longBenjamin Peterson2016-09-082-9/+9
| |
* | require a long long data type (closes #27961)Benjamin Peterson2016-09-061-1/+1
| |
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-1/+1
| |
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functionsSerhiy Storchaka2016-08-146-26/+36
| | | | | | | | implemented with using Argument Clinic.
* | - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-072-5/+5
|\ \ | |/ | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-072-5/+5
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Fix a comment.Barry Warsaw2016-06-081-1/+2
| |
* | Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7.Serhiy Storchaka2016-06-097-61/+115
| |
* | Issue #27066: Fixed SystemError if a custom opener (for open()) returns aBarry Warsaw2016-06-081-1/+7
|\ \ | |/ | | | | negative number without setting an exception.
| * Issue #27066: Fixed SystemError if a custom opener (for open()) returnsBarry Warsaw2016-06-081-1/+6
| | | | | | | | a negative number without setting an exception.
* | issue27186: add open/io.open; patch by Jelle ZijlstraEthan Furman2016-06-041-16/+32
| |
* | Issue #20699: Merge io bytes-like fixes from 3.5Martin Panter2016-05-286-12/+13
|\ \ | |/