Issue 18618: Need an atexit.register equivalent that also works in subinterps
Issue18618
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.
Created on 2013-08-01 17:47 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg194092 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2013-08-01 17:47 | |
Callbacks registered with atexit.register() are only called at shutdown of the main interpreter. For some purposes (perhaps most of them, arguably), you actually want to execute the callbacks at subinterpreter shutdown too. |
|||
| msg194093 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2013-08-01 18:01 | |
(note that weakref.finalize indirectly suffers from this problem) |
|||
| msg396585 - (view) | Author: Irit Katriel (iritkatriel) * ![]() |
Date: 2021-06-27 15:31 | |
I think this is a duplicate of issue31901. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:48 | admin | set | github: 62818 |
| 2021-10-21 15:59:04 | iritkatriel | set | status: open -> closed superseder: atexit callbacks should be run at subinterpreter shutdown resolution: duplicate stage: resolved |
| 2021-06-27 15:31:35 | iritkatriel | set | nosy:
+ iritkatriel messages: + msg396585 |
| 2013-08-16 15:39:19 | pitrou | set | nosy:
+ christian.heimes |
| 2013-08-01 18:01:02 | pitrou | set | messages: + msg194093 |
| 2013-08-01 17:47:58 | pitrou | set | priority: normal -> low type: enhancement components: + Interpreter Core, Library (Lib) versions: + Python 3.4 |
| 2013-08-01 17:47:43 | pitrou | create | |
