Steve Dower <steve.do...@python.org> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37380>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to