[issue5541] File's current position inconsistent with 'a+' mode

Antoine Pitrou report at bugs.python.org
Mon Mar 23 19:54:20 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

The right answer IMO is that the current position should be set to the
end of the file, since it is opened in "append" mode.
What happens actually is that, on some systems, the position is
implicitly set to the end of the file on the first write() rather than
when the file is open()ed.

This should be different in 3.1, could you give it a try?

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5541>
_______________________________________


More information about the Python-bugs-list mailing list