title: What is the multiplatform alternative to subprocess.getstatusoutput (older commands.setstatusoutput() from Python?
body: <p>The code below is outdated in Python 3.0 by being replaced by <code>subprocess.getstatusoutput()</code>. </p>
  
  <pre><code>import commands
  (ret, out) = commands.getstatusoutput('some command')
  print ret
  print out
  </code></pre>
  
  <p>The real question is what's the multiplatform alternative to this command from Python because the above code does fail ugly under Windows because getstatusoutput is supported only under Unix and Python does not tell you this, instead you get something like:</p>
  
  <pre><code>&gt;test.py
  1
  '{' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>