[Python-ideas] Suprocess functionality partitioning
anatoly techtonik
techtonik at gmail.com
Wed Jun 12 21:32:14 CEST 2013
Something needs to be done about subprocess API, which got overly
complicated.
The idea is to have:
shutil.run() - run command through shell, unsafe
sys.run() - run command directly in operating system, ?safe
Both should be API compatible (unblocking stdin/stdout read etc.).
Currently, subprocess calls are unreadable in any Python code - many
conditions makes its behaviour hard to predict and memorize. By
partitioning shell and out-of-shell execution, the documentation will be
easier to grasp and reference to. Maybe it will be even possible to add
some 2D table of various subprocess states that affect behavior.
--
anatoly t.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130612/83a8998a/attachment.html>
More information about the Python-ideas
mailing list