4 ms·
Python 3 intends to fix a lot of the stdlib issues. For example, the subprocess module should obsolete all of the various popens. http://docs.python.org/librar
by aston 17y ago
Python 3 intends to fix a lot of the stdlib issues. For example, the subprocess module should obsolete all of the various popens.
http://docs.python.org/library/subprocess.html http://docs.python.org/library/subprocess.html
- dkarl 17y agoAnd subprocess is available in 2.6, too. It looks like a well-designed API and certainly makes it easy to run external filters on data. For example, to get the output of 'tidy -q' on a string s: proc = subprocess.Popen(['tidy', '-q'], stdin=PIPE, stdout=PIPE, stderr=PIPE) (tidyout, tidyerr) = proc.communicate(input=s) if proc.returncode != 0: ...
- tdavis 17y agoErrr, subprocess has been around since 2.4...