[issue14073] allow per-thread atexit()

Vadim Markovtsev report at bugs.python.org
Wed Mar 18 09:50:25 CET 2015


Vadim Markovtsev added the comment:

I agree that there must be some way to join the threads before exiting, with a callback or anything else. Currently, my thread pool implementation has to monkey patch sys.exit and register SIGINT handler to shutdown itself and avoid the hangup (100+ LoC to cover all possible exceptions). I am working on a big framework and demanding from users to call "thread pool shutdown" function before exit would be yet another thing they must remember and just impossible in some cases. It would ruin the whole abstraction. Python is not C, you know.

----------
nosy: +Vadim Markovtsev

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14073>
_______________________________________


More information about the Python-bugs-list mailing list