Bug report: regarding the write() method

Dec. 9, 2019
1:57 p.m.
Dear sir or madam, We are students of the University of Ioannina in the Department of Computer Engineering and Computer Science and during our lecture we, together with our professor(Nikos Mamoulis), came across an interesting case on the subject of file writing in Python 3. Upon opening a file with 'r+', and then proceeding to read from it, when attempting to write in the same file, the write() method does not obey the "cursor" position in the said file which was set by the read method, meaning it appends the string at the end of the file instead of replacing characters as it does in Python2. Following is a screenshot of the code that causes the issue. With best regards, Christos Vasilakos Vasileios Akoutas
1927
Age (days ago)
1927
Last active (days ago)
0 comments
1 participants
participants (1)
-
Christos Vasilakos