[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

STINNER Victor report at bugs.python.org
Mon Jun 2 14:47:13 CEST 2014


STINNER Victor added the comment:

Since Python 3.4, all file descriptors directly created by Python are marked as non-inheritable. It should now be safe to use subprocess with close_fds=False, but the default value was not changed because third party modules (especially code written in C) may not respect the PEP 446.

If you are interested to change the default value, you should audit the major Python modules on PyPI to check if they were adapted to respect the PEP 446 (mark all file descriptors as non-inheritable).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21627>
_______________________________________


More information about the Python-bugs-list mailing list