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 ocean-city
Recipients ocean-city, zmedico
Date 2009-02-27.09:38:37
SpamBayes Score 9.81315e-12
Marked as misclassified No
Message-id <1235727521.78.0.821083052459.issue5380@psf.upfronthosting.co.za>
In-reply-to
Content
I think this is not array modules' bug. Attached test program outputs
different results on trunk/py3k.

debian:~/python-dev/trunk# ./python /mnt/windows/simple_test.py
os.pipe: success
pty.openpty: success

debian:~/python-dev/py3k# ./python /mnt/windows/simpled_test.py
b'os.pipe: success'
Traceback (most recent call last):
  File "/mnt/windows/simpled_test.py", line 17, in <module>
    gotdata = master_file.read(len(data) + 1)
  File "/root/python-dev/py3k/Lib/io.py", line 918, in read
    return self._read_unlocked(n)
  File "/root/python-dev/py3k/Lib/io.py", line 952, in _read_unlocked
    chunk = self.raw.read(wanted)
IOError: [Errno 5] Input/output error

And if you use io.open instead of os.fdopen, you can see same error
happens on trunk. So I think this is io module's bug. (py3k is using io
module deeply)
History
Date User Action Args
2009-02-27 09:38:42ocean-citysetrecipients: + ocean-city, zmedico
2009-02-27 09:38:41ocean-citysetmessageid: <1235727521.78.0.821083052459.issue5380@psf.upfronthosting.co.za>
2009-02-27 09:38:40ocean-citylinkissue5380 messages
2009-02-27 09:38:39ocean-citycreate