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