[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

Dec. 3, 2018
4:28 p.m.
STINNER Victor <vstinner@redhat.com> added the comment: """ def the_test(): print("Begin") for x in multiprocessing.Pool().imap(int, ["4", "3"]): print(x) print("End") """ Side-note: Is it correct to use a pool without calling terminate() nor close()? Should we start to emit a ResourceWarning if a pool is not closed explicitly, as we did for files, sockets, asyncio event loops and subprocess.Popen objects? ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34172> _______________________________________
2276
Age (days ago)
2276
Last active (days ago)
0 comments
1 participants
participants (1)
-
STINNER Victor