Steven D'Aprano wrote:
Are there any circumstances where merely *opening* a file (before reading it) can raise EOFError?

I don't think so. As far as I know, the only built-in
thing that raises EOFError is input() (and raw_input()
in Py2).

--
Greg

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to