summaryrefslogtreecommitdiffstats
path: root/Modules/_io
Commit message (Collapse)AuthorAgeFilesLines
* Issue #25717: Merge comment from 3.5Martin Panter2015-12-061-0/+3
|\
| * Issue #25717: Add comment explaining why errors are ignoredMartin Panter2015-12-061-0/+3
| |
* | Issue #25717: Merge fstat() fix from 3.5Martin Panter2015-12-061-12/+27
|\ \ | |/
| * Issue #25717: Tolerate fstat() failures in the FileIO constructorMartin Panter2015-12-061-12/+27
| | | | | | | | | | | | This restores 3.4 behaviour, which was removed by revision 3b5279b5bfd1. The fstat() call fails with ENOENT for a Virtual Box shared folder filesystem if the file entry has been unlinked, e.g. for a temporary file.
* | Issue #25523: Merge a-to-an corrections from 3.5Martin Panter2015-11-022-3/+3
|\ \ | |/
| * Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-022-3/+3
| |\
| | * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-022-3/+3
| | | | | | | | | | | | | | | | | | 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 #22413: Merge StringIO doc from 3.5Martin Panter2015-10-102-5/+8
|\ \ \ | |/ /
| * | Issue #22413: Remove comment made out of date by Argument ClinicMartin Panter2015-10-101-4/+2
| | |
| * | Issue #22413: Merge StringIO doc from 3.4 into 3.5Martin Panter2015-10-101-1/+6
| |\ \ | | |/
| | * Issue #22413: Document newline effect on StringIO initializer and getvalueMartin Panter2015-10-101-1/+6
| | | | | | | | | | | | Also add to comment in the C code.
* | | Merge typo fixes from 3.5Martin Panter2015-10-071-1/+1
|\ \ \ | |/ /
| * | Merge typo fixes from 3.4 into 3.5Martin Panter2015-10-071-1/+1
| |\ \ | | |/
| | * Various minor typos in documentation and commentsMartin Panter2015-10-071-1/+1
| | |
| | * Issue #25030: Do not document seek() as if it accepts keyword argumentsMartin Panter2015-09-111-1/+1
| | | | | | | | | | | | Patch from Shiyao Ma.
| | * Issue #23796: peak and read1 methods of BufferedReader now raise ValueErrorBerker Peksag2015-05-121-0/+5
| | | | | | | | | | | | | | | | | | if they called on a closed object. Patch by John Hergenroeder.
| * | Issue #24989: Fixed buffer overread in BytesIO.readline() if a position isSerhiy Storchaka2015-09-041-1/+5
| | | | | | | | | | | | set beyond size. Based on patch by John Leitch.
* | | 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 #24989: Fixed buffer overread in BytesIO.readline() if a position isSerhiy Storchaka2015-09-031-1/+5
|\ \ \ | | | | | | | | | | | | set beyond size. Based on patch by John Leitch.
| * | | Issue #24989: Fixed buffer overread in BytesIO.readline() if a position isSerhiy Storchaka2015-09-031-1/+5
| |/ / | | | | | | | | | set beyond size. Based on patch by John Leitch.
* | | - 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.
* | Fixes cast warning in bufferedio.cSteve Dower2015-05-231-1/+1
| |
* | Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura ↵Antoine Pitrou2015-05-201-0/+16
| | | | | | | | Rupprecht.
* | Issue #23796: peak and read1 methods of BufferedReader now raise ValueErrorBerker Peksag2015-05-121-0/+5
| | | | | | | | | | | | if they called on a closed object. Patch by John Hergenroeder.
* | Issue #24009: Got rid of using rare "y#" format unit in TextIOWrapper.tell().Serhiy Storchaka2015-05-061-2/+11
| | | | | | | | | | Parsed value should be bytes, not general robuffer, this is required in other places.
* | Issue #24001: Argument Clinic converters now use accept={type}Larry Hastings2015-05-045-20/+20
| | | | | | | | instead of types={'type'} to specify the types the converter accepts.
* | Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at theSerhiy Storchaka2015-04-237-87/+42
| | | | | | | | same line as function name.
* | Issue #23908: os functions now reject paths with embedded null characterSerhiy Storchaka2015-04-201-7/+6
|\ \ | |/ | | | | | | | | on Windows instead of silently truncate them. Removed no longer used _PyUnicode_HasNULChars().
| * Issue #23908: os functions now reject paths with embedded null characterSerhiy Storchaka2015-04-201-7/+6
| | | | | | | | on Windows instead of silently truncate them.
* | Use PyArg_ParseTuple (new API) instead of PyArg_Parse (old API) for parsing ↵Serhiy Storchaka2015-04-191-5/+5
| | | | | | | | tuples.
* | Fix typo in assert statementChristian Heimes2015-04-161-1/+1
| |
* | Issue #20175: Converted the _io module to Argument Clinic.Serhiy Storchaka2015-04-1614-1348/+4170
| |
* | Issue #22982: Improve BOM handling when seeking to multiple positions of a ↵Antoine Pitrou2015-04-131-4/+21
|\ \ | |/ | | | | writable text file.
| * Issue #22982: Improve BOM handling when seeking to multiple positions of a ↵Antoine Pitrou2015-04-131-4/+21
| | | | | | | | writable text file.
* | Issue #23309: Avoid a deadlock at shutdown if a daemon thread is abortedAntoine Pitrou2015-04-131-1/+22
|\ \ | |/ | | | | | | | | while it is holding a lock to a buffered I/O object, and the main thread tries to use the same I/O object (typically stdout or stderr). A fatal error is emitted instead.
| * Issue #23309: Avoid a deadlock at shutdown if a daemon thread is abortedAntoine Pitrou2015-04-131-1/+22
| | | | | | | | | | | | while it is holding a lock to a buffered I/O object, and the main thread tries to use the same I/O object (typically stdout or stderr). A fatal error is emitted instead.
* | Issue #23668: Suppresses invalid parameter handler around chsize calls.Steve Dower2015-04-121-0/+2
| |
* | Issue #23524: Replace _PyVerify_fd function with calls to ↵Steve Dower2015-04-121-1/+13
| | | | | | | | _set_thread_local_invalid_parameter_handler.
* | Issue #23668: Adds support for os.truncate and os.ftruncate on WindowsSteve Dower2015-03-211-50/+4
| |
* | Issue #21859: Corrected FileIO docstrings.Serhiy Storchaka2015-04-101-15/+18
|\ \ | |/
| * Issue #21859: Corrected FileIO docstrings.Serhiy Storchaka2015-04-101-15/+18
| |
* | Replaced "string" with "bytes object" in docstrings of binary I/O objects.Serhiy Storchaka2015-04-092-13/+13
|\ \ | |/
| * Replaced "string" with "bytes object" in docstrings of binary I/O objects.Serhiy Storchaka2015-04-092-13/+13
| |
* | Issue #23752: _Py_fstat() is now responsible to raise the Python exceptionVictor Stinner2015-03-301-6/+4
| | | | | | | | Add _Py_fstat_noraise() function when a Python exception is not welcome.
* | Issue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances.Serhiy Storchaka2015-03-301-6/+2
|\ \ | |/
| * Issue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances.Serhiy Storchaka2015-03-301-6/+2
| |
* | Issue #23752: When built from an existing file descriptor, io.FileIO() now onlyVictor Stinner2015-03-301-24/+0
| | | | | | | | calls fstat() once. Before fstat() was called twice, which was not necessary.
* | Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-241-4/+10
|\ \ | |/ | | | | writer failed in BufferedRWPair.close().
| * Issue #21802: The reader in BufferedRWPair now is closed even when closingSerhiy Storchaka2015-03-241-4/+10
| | | | | | | | writer failed in BufferedRWPair.close().
* | Issue #23753: Python doesn't support anymore platforms without stat() orVictor Stinner2015-03-241-20/+0
| | | | | | | | | | | | | | fstat(), these functions are always required. Remove HAVE_STAT and HAVE_FSTAT defines, and stop supporting DONT_HAVE_STAT and DONT_HAVE_FSTAT.