[issue20989] XML File I/O Misbehavior with open() when the flag is 'r+'

2020-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python 2.7 is no longer supported. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue20989] XML File I/O Misbehavior with open() when the flag is 'r+'

2014-03-20 Thread R. David Murray
R. David Murray added the comment: Your example doesn't seem to have anything to do with XML, nor is it sufficient to reproduce the problem. Can you provide a simple program including sample data that reproduces the behavior you are concerned with? We'll also need to know what platform you a

[issue20989] XML File I/O Misbehavior with open() when the flag is 'r+'

2014-03-19 Thread Rex Kim
New submission from Rex Kim: I found a misbehavior when reading and writing XML File by open() with 'r+' flag, some strings will be overlapped at the end of the file. you can demonstrate it like below: f = open(file, "r+") c = f.read() # todo: write something to do f.write(c) f.close() Act