[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown
report at bugs.python.org
Sun Oct 24 12:53:00 CEST 2010
New submission from Nick Coghlan <ncoghlan at gmail.com>:
During interpreter shutdown, modules can become unusable as module globals are set to None. This is a problem for tempfile.TemporaryDirectory, as it needs working os, os.path and stat modules in order to clean up the filesystem.
The class makes a valiant attempt at reducing the frequency of these errors, but it is ultimately useless, since the three modules internally rely on their various globals remaining valid.
Issue #812369 may be a possible solution to this problem, or perhaps even an explicit list of essential modules that are nulled out only after all other modules have been destroyed.
title: tempfile.TemporaryDirectory may throw errors at shutdown
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list