Message322076
> 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(). |
|
Date |
User |
Action |
Args |
2018-07-21 06:16:49 | Windson Yang | set | recipients:
+ Windson Yang, tzickel |
2018-07-21 06:16:49 | Windson Yang | set | messageid: <1532153809.54.0.56676864532.issue34172@psf.upfronthosting.co.za> |
2018-07-21 06:16:49 | Windson Yang | link | issue34172 messages |
2018-07-21 06:16:49 | Windson Yang | create | |
|