This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients François.Trahan, iritkatriel, pitrou
Date 2021-06-16.15:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623856884.03.0.304372182703.issue23394@roundup.psfhosted.org>
In-reply-to
Content
For the use case you describe, you could add a close() function to your library so that callers can make shutdown explicit, or if you want it to remain implicit you could use daemon threads which terminate when the main thread exits.

Relying on GC to release objects which then close non-daemonic threads from __del__ doesn't sound like a robust design to me.
History
Date User Action Args
2021-06-16 15:21:24iritkatrielsetrecipients: + iritkatriel, pitrou, François.Trahan
2021-06-16 15:21:24iritkatrielsetmessageid: <1623856884.03.0.304372182703.issue23394@roundup.psfhosted.org>
2021-06-16 15:21:24iritkatriellinkissue23394 messages
2021-06-16 15:21:23iritkatrielcreate