[issue20989] XML File I/O Misbehavior with open() when the flag is 'r+'
Rex Kim
report at bugs.python.org
Thu Mar 20 05:52:18 CET 2014
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()
Actually I'm not sure if it's bug or not however it might be.
----------
components: IO
messages: 214174
nosy: rexperience7
priority: normal
severity: normal
status: open
title: XML File I/O Misbehavior with open() when the flag is 'r+'
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20989>
_______________________________________
More information about the Python-bugs-list
mailing list