[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()
Charles-François Natali
report at bugs.python.org
Mon Oct 31 16:08:01 CET 2011
Charles-François Natali <neologix at free.fr> added the comment:
Then we won't write the bytecode any more.
But it will be consistent.
The solution would be to create a random temporary file (with e.g. mkstemp()): in case of crash, we'll let dangling temporary files, but we'll be able to update the bytecode.
I'm note sure it's worth it (and it won't be easy since we're really restricted in what we're allowed to call).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13303>
_______________________________________
More information about the Python-bugs-list
mailing list