[Python-Dev] PEP 446: Open issues/questions (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue Jul 30 11:29:12 CEST 2013
- Previous message: [Python-Dev] PEP 446: Open issues/questions
- Next message: [Python-Dev] PEP 446: Open issues/questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le Tue, 30 Jul 2013 09:09:38 +0200, Charles-François Natali <cf.natali at gmail.com> a écrit :
> > Perhaps this advocates for a global flag, e.g. > sys.setdefaultfdinheritance(), with False (non-inheritable) being > the default for sanity and security.
This looks more and more like PEP 433 :-) And honestly, when I think about it, I think that this whole mess is a solution looking for a problem. If we don't want to inherit file descriptors in child processes, the answer is simple: the subprocess module (this fact is not even mentioned in the PEP).
This is a good point. Are there any reasons (other than fd inheritance) not to use subprocess? If there are, perhaps we should try to eliminate them by improving subprocess.
Regards
Antoine.
- Previous message: [Python-Dev] PEP 446: Open issues/questions
- Next message: [Python-Dev] PEP 446: Open issues/questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]