[issue23562] file.read() followed by file.write() result in incorrect behavior

2015-03-02 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate status: open -> closed superseder: -> TextIOWrapper: issues with interlaced read-write ___ Python tracker ___ _

[issue23562] file.read() followed by file.write() result in incorrect behavior

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: This issue is probably a duplicate of the issue #12215 (see also #12513 for the codecs moduile). -- nosy: +haypo ___ Python tracker ___ ___

[issue23562] file.read() followed by file.write() result in incorrect behavior

2015-03-02 Thread Maxime S
New submission from Maxime S: Observed Behavior: $python3 Python 3.5.0a1+ (default, Mar 2 2015, 14:30:05) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> f = open("test", "w+") >>> f.write("Hello World") 11 >>> f.seek(0) 0 >>> f.read(5) 'Hello' >