Message346578
The handle can deliberately live beyond the process, but it does not have to. If it is closed early then the kernel object will be freed when no handles remain, which will be at process exit.
So it's a classic __exit__/__del__ case, where both are needed if you want deterministic resource disposal. But it is in no way tied to the life of the child process, so waiting first is optional. |
|
Date |
User |
Action |
Args |
2019-06-26 01:56:21 | steve.dower | set | recipients:
+ steve.dower, gregory.p.smith, paul.moore, vstinner, tim.golden, zach.ware, eryksun, efiop |
2019-06-26 01:56:21 | steve.dower | set | messageid: <1561514181.64.0.298891015968.issue37380@roundup.psfhosted.org> |
2019-06-26 01:56:21 | steve.dower | link | issue37380 messages |
2019-06-26 01:56:21 | steve.dower | create | |
|