Title: Need an atexit.register equivalent that also works in subinterps
Type: enhancement Stage:
Components: Interpreter Core, Library (Lib) Versions: Python 3.4
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, pitrou, sbt
Priority: low Keywords:

Created on 2013-08-01 17:47 by pitrou, last changed 2013-08-16 15:39 by pitrou.

Messages (2)
msg194092 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) 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) * (Python committer) Date: 2013-08-01 18:01
(note that weakref.finalize indirectly suffers from this problem)
Date User Action Args
2013-08-16 15:39:19pitrousetnosy: + christian.heimes
2013-08-01 18:01:02pitrousetmessages: + msg194093
2013-08-01 17:47:58pitrousetpriority: normal -> low
type: enhancement
components: + Interpreter Core, Library (Lib)
versions: + Python 3.4
2013-08-01 17:47:43pitroucreate