Python subprocess readlines()?
<p>So I'm trying to move away from os.popen to subprocess.popen as recommended by the user guide.  The only trouble I'm having is I can't seem to find a way of making readlines() work.</p>

<p>So I used to be able to do</p>

<pre><code>list = os.popen('ls -l').readlines()
</code></pre>

<p>But I can't do</p>

<pre><code>list = subprocess.Popen(['ls','-l']).readlines()
</code></pre>
