Thank you everyone that commented in this thread about the best interface for posix_spawn. I have finished implementing Antoine's suggestion in the PR:<div><br></div><div><a href="https://github.com/python/cpython/pull/5109">https://github.com/python/cpython/pull/5109</a></div><div><br></div><div>I think it would be good if we can have this merged before the feature lock at the end of the month if possible.</div><div><br></div><div>Thanks you very much everyone for your time and suggestions!</div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, 10 Jan 2018, 09:17 Pablo Galindo Salgado, <<a href="mailto:pablogsal@gmail.com">pablogsal@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think I really like Antoine's suggestion so I'm going to finish<br>
implementing it that way. I think this keeps the API simple, does not bring<br>
in the os module new dependencies, keeps the C implementation clean and is<br>
consistent with the rest of the posix module. I will post an update when is<br>
ready.<br>
<br>
Thank you everyone for sharing your view and advice!<br>
</blockquote></div></div>