<div dir="ltr"><div><div><div><div><div><div>Something needs to be done about subprocess API, which got overly complicated.<br><br>The idea is to have:<br></div> shutil.run() - run command through shell, unsafe<br></div>
sys.run() - run command directly in operating system, ?safe<br><br></div>Both should be API compatible (unblocking stdin/stdout read etc.).<br></div>Currently, subprocess calls are unreadable in any Python code - many<br>
</div>conditions makes its behaviour hard to predict and memorize. By<br>partitioning shell and out-of-shell execution, the documentation will be<br></div>easier to grasp and reference to. Maybe it will be even possible to add<br>
some 2D table of various subprocess states that affect behavior.<br><div>-- <br><div><div><div><div><div><div><div>anatoly t.</div>
</div></div></div></div></div></div></div></div>