This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | christian.heimes |
|---|---|
| Recipients | christian.heimes |
| Date | 2007年11月16日.14:56:48 |
| SpamBayes Score | 0.39267084 |
| Marked as misclassified | No |
| Message-id | <1195225008.73.0.984849336269.issue1452@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年11月16日 14:56:49 | christian.heimes | set | spambayes_score: 0.392671 -> 0.39267084 recipients: + christian.heimes |
| 2007年11月16日 14:56:48 | christian.heimes | set | spambayes_score: 0.392671 -> 0.392671 messageid: <1195225008.73.0.984849336269.issue1452@psf.upfronthosting.co.za> |
| 2007年11月16日 14:56:48 | christian.heimes | link | issue1452 messages |
| 2007年11月16日 14:56:48 | christian.heimes | create | |