[issue5395] array.fromfile not checking I/O errors

Eduardo Aguiar report at bugs.python.org
Tue Oct 6 15:50:37 CEST 2009


Eduardo Aguiar <aguiar at users.sourceforge.net> added the comment:

Another try. I have opened a file for writing, and have tried to read
from it:

>>> fp = open ('xxx', 'w')
>>> fp.read ()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 9] Bad file descriptor

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5395>
_______________________________________


More information about the Python-bugs-list mailing list