[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc
report at bugs.python.org
Sat Jun 20 20:24:52 CEST 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
Here is my current interpretation:
subprocess uses os.pipe() to create the file handles used for
communication. These handles normally always raise an error ([Errno 29]
Illegal seek) when trying to seek() on them, which the IO lib interprets
as meaning the stream is not seekable, which it then handles fine.
However, if the first seek() succeeds, the IO lib thinks the stream is
seekable and treats any subsequent seek() failure as an error which it
reports to the user. It may be what you are witnessing.
Can you try applying the following patch?
Added file: http://bugs.python.org/file14323/seek-aix.patch
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list