[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

Charles-François Natali report at bugs.python.org
Mon Oct 31 17:51:21 CET 2011


Charles-François Natali <neologix at free.fr> added the comment:

Here's a patch using pseudo-random filenames.
I used id(path) to generate a random name: it's faster than getpid(), and doesn't pollute strace's output (I'm one of strace's biggest fan :-).

----------
Added file: http://bugs.python.org/file23571/import_atomic_race-1.diff

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


More information about the Python-bugs-list mailing list