On Mon, Apr 14, 2008 at 7:11 PM, Guido van Rossum <[EMAIL PROTECTED]> 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.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to