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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14073>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to