Message358782
> 1. Python daemon threads
I think the answer is to document a bit more clearly that they can pose all kinds of problems. Perhaps we could even display a visible warning when people create daemon threads.
> 2. Python threads created in atexit handlers
We could run the "join non-daemon threads" routine a *second time* after atexit handlers have been called. It probably can't hurt (unless people do silly things?).
> 3. non-Python threads accessing the C-API
This one I don't know how to handle. By construction, a non-Python thread can do anything it wants, and we cannot add guards against this at the beginning of each C API function. I think that when someone calls the C API, we're clearly in the realm of "consenting adults". |
|
Date |
User |
Action |
Args |
2019-12-21 20:15:13 | pitrou | set | recipients:
+ pitrou, tim.peters, ncoghlan, vstinner, eric.snow, pconnell, pablogsal, nanjekyejoannah |
2019-12-21 20:15:13 | pitrou | set | messageid: <1576959313.86.0.467220651576.issue36476@roundup.psfhosted.org> |
2019-12-21 20:15:13 | pitrou | link | issue36476 messages |
2019-12-21 20:15:13 | pitrou | create | |
|