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.
Created on 2007年11月16日 14:56 by christian.heimes, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg57585 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2007年11月16日 14:56 | |
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.
|
|||
| msg57593 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2007年11月16日 19:45 | |
Python 2.5 on Windows has the same behaviour, it does not fail. In general, python does not try to hide this kind of differences. |
|||
| msg116789 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2010年09月18日 14:53 | |
@Brian/Tim what would you expect to happen here? |
|||
| msg125271 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2011年01月04日 01:12 | |
Looks like it's a platform bug, nothing Python can do about. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:28 | admin | set | github: 45793 |
| 2011年01月04日 01:12:59 | pitrou | set | status: open -> closed nosy: + pitrou messages: + msg125271 resolution: rejected |
| 2010年09月18日 14:53:32 | BreamoreBoy | set | nosy:
+ tim.golden, brian.curtin, BreamoreBoy messages: + msg116789 |
| 2010年06月18日 00:03:26 | giampaolo.rodola | set | nosy:
+ giampaolo.rodola |
| 2010年06月10日 23:16:42 | belopolsky | set | type: enhancement versions: + Python 3.2, - Python 3.0 |
| 2008年01月06日 22:29:45 | admin | set | keywords:
- py3k versions: Python 3.0 |
| 2007年11月20日 00:45:18 | christian.heimes | set | priority: normal |
| 2007年11月16日 19:45:10 | amaury.forgeotdarc | set | nosy:
+ amaury.forgeotdarc messages: + msg57593 |
| 2007年11月16日 14:56:48 | christian.heimes | create | |