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

2018-03-18 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +5901 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[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") The f