[issue7360] [mailbox] race: mbox may lose data with concurrent access
Antoine Pitrou
report at bugs.python.org
Thu Nov 19 18:06:46 CET 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
Oops, sorry:
> I don't think this class aims at being safe against concurrent access,
> so having it fail loudly is a good thing.
I now understand that the problem is that it doesn't fail loudly. That's
what I get for replying too quickly.
Still, I don't think the suggested fix is ok. Perhaps we should simply
state in the documentation that flush() discards the old file, so that
other processes accessing it may get a surprise.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7360>
_______________________________________
More information about the Python-bugs-list
mailing list