STINNER Victor added the comment:

Oh, fopen() behaves differently between "a" and "a+" mode on Linux: "a" goes to 
the end, "a+" doesn't. It looks like a bug in the C library, or a bug in the 
documentation?
"a+ mode:
Open for reading and appending (writing at end of file)"
http://linux.die.net/man/3/fopen

open() of Python 3 and io.open() of Python 2 and Python 3 behaves "correctly": 
"a" and "a+" modes go to the end.

----------

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

Reply via email to