[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc
Antoine Pitrou
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?
----------
keywords: +patch
Added file: http://bugs.python.org/file14323/seek-aix.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6236>
_______________________________________
More information about the Python-bugs-list
mailing list