Author Windson Yang
Recipients Windson Yang, tzickel
Date 2018-07-21.06:16:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532153809.54.0.56676864532.issue34172@psf.upfronthosting.co.za>
In-reply-to
Content
> 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().
History
Date User Action Args
2018-07-21 06:16:49Windson Yangsetrecipients: + Windson Yang, tzickel
2018-07-21 06:16:49Windson Yangsetmessageid: <1532153809.54.0.56676864532.issue34172@psf.upfronthosting.co.za>
2018-07-21 06:16:49Windson Yanglinkissue34172 messages
2018-07-21 06:16:49Windson Yangcreate