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

Jan Hosang report at bugs.python.org
Tue Oct 6 08:24:36 CEST 2009


Jan Hosang <jan.hosang at gmail.com> added the comment:

> Maybe you could create a file without read permission (000) and try
> to read from it.

I just checked. If I don't have read permissions, I am not able to open 
the file. When I open a file and change permissions afterwards, I can read 
the complete file alright. (Checked with a 4mb file, I hope that's beyond 
buffering.) So I guess permissions are only checked when you open the 
file.

----------

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


More information about the Python-bugs-list mailing list