Windson Yang <wiwind...@gmail.com> added the comment: > A. This does not happen, creating a Pool, deleting it and collecting the > garbage, does not call terminate.
Would you give me an example how you delete the Pool and collecting the garbage? If you use context manager, It will call terminate() function. > B. The documentation for Pool itself does not specify it has a context > manager (but the examples show it). You can find this info on the same page: New in version 3.3: Pool objects now support the context management protocol – see Context Manager Types. __enter__() returns the pool object, and __exit__() calls terminate(). ---------- nosy: +Windson Yang _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34172> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com