Fornax added the comment:

After taking a little time to let this sink in, I'm going to play Devil's 
Advocate just a little more.

It sounds like you're basically saying that any read-write text-based modes 
(e.g. r+, w+) should be used at your own peril. While I understand your UTF-7 
counterexample, and it's a fair point, is it out of line to expect that for 
encodings that operate on full bytes, file positioning should work a bit more 
intuitively? (Which is to say, a write/truncate after a read should take place 
in the position immediately following the end of the read.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26158>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to