[issue18876] Problems with files opened in append mode with io module

Erik Bray report at bugs.python.org
Fri Aug 30 00:11:02 CEST 2013


Erik Bray added the comment:

Here's an initial stab at a simple patch that just addresses the issue of 'append' not being in the mode string.  Amazingly this did not break a single existing test, though I added a new one to test how FileIO objects display their mode string after being initialized (normalizes modes like 'r+b' to 'rb+', etc.)  Most of what it tests is the existing behavior, but it also tests for the reintroduction of the 'a' mode.

This doesn't address the BufferedWriter issue, nor does it address cross-platform issues.

----------
keywords: +patch
Added file: http://bugs.python.org/file31515/issue_18876_patch_1.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18876>
_______________________________________


More information about the Python-bugs-list mailing list