[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever
STINNER Victor
report at bugs.python.org
Fri Mar 20 13:58:16 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
If you want to get a reliable behavior, don't rely on destructors. Python finalization is not determistic and destructors can be called while Python is not longer fully functional.
Release ressources explicitly. For example, use multiprocessing.Pool with a context manager, or even call close() and join() methods explicitly.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39360>
_______________________________________
More information about the Python-bugs-list
mailing list