Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -4/+1 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | Revert "bpo-17852: Maintain a list of BufferedWriter objects. Flush them on ↵ | Neil Schemenauer | 2017-09-05 | 1 | -24/+0 |
| | | | | | exit. (#1908)" (#3337) This reverts commit e38d12ed34870c140016bef1e0ff10c8c3d3f213. | ||||
* | bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. ↵ | Neil Schemenauer | 2017-09-05 | 1 | -0/+24 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#1908) * Maintain a list of BufferedWriter objects. Flush them on exit. In Python 3, the buffer and the underlying file object are separate and so the order in which objects are finalized matters. This is unlike Python 2 where the file and buffer were a single object and finalization was done for both at the same time. In Python 3, if the file is finalized and closed before the buffer then the data in the buffer is lost. This change adds a doubly linked list of open file buffers. An atexit hook ensures they are flushed before proceeding with interpreter shutdown. This is addition does not remove the need to properly close files as there are other reasons why buffered data could get lost during finalization. Initial patch by Armin Rigo. * Use weakref.WeakSet instead of WeakKeyDictionary. * Simplify buffered double-linked list types. * In _flush_all_writers(), suppress errors from flush(). * Remove NEWS entry, use blurb. | ||||
* | bpo-29741: Update some methods in the _pyio module to also accept integer ↵ | Oren Milman | 2017-08-24 | 1 | -14/+38 |
| | | | | types. Patch by Oren Milman. (#560) | ||||
* | Fix bpo-30526: Add TextIOWrapper.reconfigure() and a ↵ | Antoine Pitrou | 2017-06-03 | 1 | -1/+22 |
| | | | | | | | | | | TextIOWrapper.write_through attribute (#1922) * Fix bpo-30526: Add TextIOWrapper.reconfigure() * Apply Nick's improved wording * Update Misc/NEWS | ||||
* | Fix small exception typos in Lib (#818) | Jim Fasarakis-Hilliard | 2017-03-26 | 1 | -2/+2 |
| | |||||
* | Merge from 3.6. | Serhiy Storchaka | 2016-12-07 | 1 | -1/+1 |
|\ | |||||
| * | Merge from 3.5. | Serhiy Storchaka | 2016-12-07 | 1 | -1/+1 |
| |\ | |||||
| | * | Change order of io.UnsupportedOperation base classes. | Serhiy Storchaka | 2016-12-07 | 1 | -1/+1 |
| | | | | | | | | | | | | This makes tests passing after changes by issue #5322. | ||||
* | | | Issue #23214: Implement optional BufferedReader, BytesIO read1() argument | Martin Panter | 2016-10-20 | 1 | -9/+9 |
|/ / | |||||
* | | Drop unused import | Martin Panter | 2016-06-12 | 1 | -1/+0 |
| | | |||||
* | | issue27186: add open/io.open; patch by Jelle Zijlstra | Ethan Furman | 2016-06-04 | 1 | -0/+2 |
| | | |||||
* | | Issue #27171: Merge typo fixes from 3.5 | Martin Panter | 2016-06-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #27171: Fix typos in documentation, comments, and test function names | Martin Panter | 2016-06-02 | 1 | -1/+1 |
| | | |||||
* | | Issue #20699: Merge io bytes-like fixes from 3.5 | Martin Panter | 2016-05-28 | 1 | -12/+14 |
|\ \ | |/ | |||||
| * | Issue #20699: Document that “io” methods accept bytes-like objects | Martin Panter | 2016-05-28 | 1 | -12/+14 |
| | | | | | | | | | | | | | | | | This matches the usage of ZipFile and BufferedWriter. This still requires return values to be bytes() objects. Also document and test that the write() methods should only access their argument before they return. | ||||
* | | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
|\ \ | |/ | | | | | messages. | ||||
| * | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
| | | |||||
* | | Issue #22854: Merge UnsupportedOperation fixes from 3.5 | Martin Panter | 2016-03-31 | 1 | -9/+9 |
|\ \ | |/ | |||||
| * | Issue #22854: Clarify documentation about UnsupportedOperation and add tests | Martin Panter | 2016-03-31 | 1 | -9/+9 |
| | | | | | | | | | | Also change BufferedReader.writable() and BufferedWriter.readable() to always return False. | ||||
* | | Add a source parameter to warnings.warn() | Victor Stinner | 2016-03-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | Issue #26604: * Add a new optional source parameter to _warnings.warn() and warnings.warn() * Modify asyncore, asyncio and _pyio modules to set the source parameter when logging a ResourceWarning warning | ||||
* | | Issue #25523: Merge a-to-an corrections from 3.5 | Martin Panter | 2015-11-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 | Martin Panter | 2015-11-02 | 1 | -1/+1 |
| |\ | |||||
| | * | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 1 | -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 #24881: Fixed setting binary mode in Python implementation of FileIO | Serhiy Storchaka | 2015-08-28 | 1 | -1/+2 |
|\ \ \ | |/ / | | | | | | | on Windows and Cygwin. Patch from Akira Li. | ||||
| * | | Issue #24881: Fixed setting binary mode in Python implementation of FileIO | Serhiy Storchaka | 2015-08-28 | 1 | -1/+2 |
| | | | | | | | | | | | | on Windows and Cygwin. Patch from Akira Li. | ||||
* | | | - Issue #2091: error correctly on open() with mode 'U' and '+' | Robert Collins | 2015-07-25 | 1 | -2/+2 |
|/ / | | | | | | | | | open() accepted a 'U' mode string containing '+', but 'U' can only be used with 'r'. Patch from Jeff Balogh and John O'Connor. | ||||
* | | Issue #22982: Improve BOM handling when seeking to multiple positions of a ↵ | Antoine Pitrou | 2015-04-13 | 1 | -11/+15 |
|\ \ | |/ | | | | | writable text file. | ||||
| * | Issue #22982: Improve BOM handling when seeking to multiple positions of a ↵ | Antoine Pitrou | 2015-04-13 | 1 | -11/+15 |
| | | | | | | | | writable text file. | ||||
* | | Issue #21859: Added Python implementation of io.FileIO. | Serhiy Storchaka | 2015-04-10 | 1 | -0/+344 |
| | | |||||
* | | Issue #21802: The reader in BufferedRWPair now is closed even when closing | Serhiy Storchaka | 2015-03-24 | 1 | -2/+4 |
|\ \ | |/ | | | | | writer failed in BufferedRWPair.close(). | ||||
| * | Issue #21802: The reader in BufferedRWPair now is closed even when closing | Serhiy Storchaka | 2015-03-24 | 1 | -2/+4 |
| | | | | | | | | writer failed in BufferedRWPair.close(). | ||||
* | | merge 3.4 | Benjamin Peterson | 2015-03-19 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | wrap properly | Benjamin Peterson | 2015-03-19 | 1 | -2/+2 |
| | | |||||
* | | Issue #23285: PEP 475 -- Retry system calls failing with EINTR. | Charles-François Natali | 2015-02-07 | 1 | -16/+3 |
| | | |||||
* | | Issue #23099: Closing io.BytesIO with exported buffer is rejected now to | Serhiy Storchaka | 2015-02-03 | 1 | -0/+6 |
|\ \ | |/ | | | | | prevent corrupting exported buffer. | ||||
| * | Issue #23099: Closing io.BytesIO with exported buffer is rejected now to | Serhiy Storchaka | 2015-02-03 | 1 | -0/+6 |
| | | | | | | | | prevent corrupting exported buffer. | ||||
* | | merge 3.4 (#23093) | Benjamin Peterson | 2014-12-22 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | allow more operations to work on detached streams (closes #23093) | Benjamin Peterson | 2014-12-22 | 1 | -3/+3 |
| | | | | | | | | Patch by Martin Panter. | ||||
* | | Issue #22869: Split pythonrun into two modules | Nick Coghlan | 2014-11-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | - interpreter startup and shutdown code moved to a new pylifecycle.c module - Py_OptimizeFlag moved into the new module with the other global flags | ||||
* | | Issue #22033: Reprs of most Python implemened classes now contain actual | Serhiy Storchaka | 2014-07-25 | 1 | -4/+6 |
| | | | | | | | | class name instead of hardcoded one. | ||||
* | | add BufferedIOBase.readinto1 (closes #20578) | Benjamin Peterson | 2014-06-22 | 1 | -9/+86 |
|/ | | | | Patch by Nikolaus Rath. | ||||
* | Issue #21310: Fixed possible resource leak in failed open(). | Serhiy Storchaka | 2014-06-09 | 1 | -30/+37 |
| | |||||
* | Close #20404: blacklist non-text encodings in io.TextIOWrapper | Nick Coghlan | 2014-02-04 | 1 | -0/+5 |
| | | | | | | | | | - io.TextIOWrapper (and hence the open() builtin) now use the internal codec marking system added for issue #19619 - also tweaked the C code to only look up the encoding once, rather than multiple times - the existing output type checks remain in place to deal with unmarked third party codecs. | ||||
* | Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline ↵ | Antoine Pitrou | 2014-02-02 | 1 | -1/+7 |
|\ | | | | | | | translation settings. | ||||
| * | Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline ↵ | Antoine Pitrou | 2014-02-02 | 1 | -1/+7 |
| | | | | | | | | translation settings. | ||||
* | | Issue #20424: Python implementation of io.StringIO now supports lone surrogates. | Serhiy Storchaka | 2014-01-29 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #20424: Python implementation of io.StringIO now supports lone surrogates. | Serhiy Storchaka | 2014-01-29 | 1 | -1/+1 |
| | | |||||
* | | Issue #15204: Deprecated the 'U' mode in file-like objects. | Serhiy Storchaka | 2013-11-23 | 1 | -2/+8 |
| | | |||||
* | | Issue #17003: Unified the size argument names in the io module with common | Serhiy Storchaka | 2013-09-16 | 1 | -81/+81 |
| | | | | | | | | practice. |