New submission from Christian Heimes:
On Linux:
>>> p = subprocess.Popen("ls", stdout=subprocess.PIPE)
>>> p.stdout.read()
b'...'
>>> p.stdout.seek(0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/heimes/dev/python/py3k/Lib/io.py", line 809, in seek
pos = self.raw.seek(pos, whence)
IOError: [Errno 29] Illegal seek
>>> p.stdout.read()
b''
On Windows p.stdout.seek(0) does neither raise an error nor works as one
might expect it. The second read() returns an empty byte string, too.
----------
components: Windows
keywords: py3k
messages: 57585
nosy: tiran
severity: normal
status: open
title: subprocess's popen.stdout.seek(0) doesn't raise an error
versions: Python 3.0
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1452>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com