[issue14077] sporadic test_multiprocessing failure
Antoine Pitrou
report at bugs.python.org
Tue Feb 21 23:36:07 CET 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
> IIRC, the reason is to avoid having a stale pyc file indefinitely in
> case of crash:
> if we always used, let's say, path + '.tmp', if the process crashes
> before the rename, then all subsequent attempts to write the bytecode
> will fail because of the stale temporary file.
But that will also fail if id(path) happens to be fairly
deterministic :) I don't know how much deterministic it can be in
practice, that probably depends on the OS and on the code path?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14077>
_______________________________________
More information about the Python-bugs-list
mailing list