[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-04-10 Thread Mark Nemec
Mark Nemec added the comment: Happy to contribute! Thanks for the review :) -- ___ Python tracker <https://bugs.python.org/issue33097> ___ ___ Python-bugs-list m

[issue33097] concurrent futures Executors accept tasks after interpreter shutdown

2018-03-18 Thread Mark Nemec
Change by Mark Nemec : -- title: concurrent.futures executors accept tasks after interpreter shutdown -> concurrent futures Executors accept tasks after interpreter shutdown ___ Python tracker <https://bugs.python.org/issu

[issue33097] concurrent.futures executors accept tasks after interpreter shutdown

2018-03-18 Thread Mark Nemec
New submission from Mark Nemec : Currently, one can submit a task to an executor (both ThreadPoolExecutor and ProcessPoolExecutor) during interpreter shutdown. One way to do this is to register function fun with atexit as below. @atexit.register def fun(): pool.submit(print, "apple&q