title: How to suppress or capture the output of subprocess.run()?
body: <p>From the examples in docs on <a href="https://docs.python.org/3.5/library/subprocess.html#subprocess.run" rel="noreferrer"><code>subprocess.run()</code></a> it seems like there shouldn't be any output from</p>
  <pre class="lang-py prettyprint-override"><code>subprocess.run([&quot;ls&quot;, &quot;-l&quot;])  # doesn't capture output
  </code></pre>
  <p>However, when I try it in a python shell the listing gets printed. I wonder if this is the default behaviour and how to suppress the output of <code>run()</code>.</p>