News for hackers. Stuff that matters.
Re:Curing Python's Neglect by aston on Friday May 29, 2009 @05:29PM (#632847)
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

Re:Curing Python's Neglect by dkarl on Friday May 29, 2009 @07:21PM (#633033)
And 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:
      ...
Re:Curing Python's Neglect by tdavis on Saturday May 30, 2009 @09:21PM (#634287)
Errr, subprocess has been around since 2.4...