Message 401959 - Python tracker

Message401959

Author jbms
Recipients gregory.p.smith, izbyshev, jbms, vstinner
Date 2021-09-16.15:30:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631806212.66.0.405963005339.issue42969@roundup.psfhosted.org>
In-reply-to
Content
Regarding your suggestion of banning daemon threads: I happened to come across this bug not because of daemon threads but because of threads started by C++ code directly that call into Python APIs.  The solution I am planning to implement is to add an `atexit` handler to prevent this problem.

I do think it is reasonable to suggest that users should ensure daemon threads are exited cleanly via an atexit handler.  However, in some cases that may be challenging to implement, and there is also the issue of backward compatibility.
History
Date User Action Args
2021-09-16 15:30:13jbmssetrecipients: + jbms, gregory.p.smith, vstinner, izbyshev
2021-09-16 15:30:12jbmssetmessageid: <1631806212.66.0.405963005339.issue42969@roundup.psfhosted.org>
2021-09-16 15:30:12jbmslinkissue42969 messages
2021-09-16 15:30:12jbmscreate