Message395933
| 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:24 | iritkatriel | set | recipients:
+ iritkatriel, pitrou, François.Trahan |
| 2021年06月16日 15:21:24 | iritkatriel | set | messageid: <1623856884.03.0.304372182703.issue23394@roundup.psfhosted.org> |
| 2021年06月16日 15:21:24 | iritkatriel | link | issue23394 messages |
| 2021年06月16日 15:21:23 | iritkatriel | create |
|