[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread Adam Wasik
New submission from Adam Wasik: >>> file = open(r"C:\adam.txt","r+") >>> file.read() 'TEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TE XT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread Adam Wasik
Adam Wasik added the comment: duplicate of the issue #12215 -- status: open -> closed ___ Python tracker ___

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> duplicate stage: -> resolved superseder: -> TextIOWrapper: issues with interlaced read-write type: -> behavior ___ Python tracker