title: Reading from Pipe with readline not seekable?
body: <p>I'm trying to work with pipes on Python 3.3/Linux as of <a href="https://stackoverflow.com/a/6193800/2375044">https://stackoverflow.com/a/6193800/2375044</a>, but if I use the following, program "hangs":</p>
  
  <pre><code>import os
  readEnd, writeEnd = os.pipe()
  readFile = os.fdopen(readEnd)
  firstLine = readFile.readline()
  </code></pre>
  
  <p>Changing <code>os.fdopen(readEnd)</code> to <code>os.fdopen(readEnd, 'r+')</code> I get</p>
  
  <pre><code>io.UnsupportedOperation: File or stream is not seekable.
  </code></pre>
  
  <p>I need a readline() function over the pipe, but I don't know what else to do.</p>