[Python-Dev] thoughts on having EOFError inherit from EnvironmentError?

Gregory P. Smith greg at krypto.org
Wed Apr 16 23:24:20 CEST 2008

On Mon, Apr 14, 2008 at 7:11 PM, Guido van Rossum <guido at python.org> wrote:

> But what operations raise EOFError? Surely you're not using
> raw_input()? It's really only there for teaching.
There are quite a few things in Lib/ that raise EOFError on their own.  Most
look like reasonable uses.  ftplib's getline() is likely the one raising it
such that it is ever seen when using urrlib2.  nntplib, telnetlib, xdrlib,
getpass, aifc, chunk, sunau, gzip, & mailbox also raise it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20080416/99dc1e3b/attachment.htm 

More information about the Python-Dev mailing list