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

Antoine Pitrou report at bugs.python.org
Mon Oct 31 17:58:05 CET 2011


Antoine Pitrou <pitrou 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 :-).

If you go that way, you should also modify Python/import.c to use a
similar logic.
(it does sound a bit overkill to me :-))

----------

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


More information about the Python-bugs-list mailing list