<br><br><div class="gmail_quote">On Mon, Apr 14, 2008 at 7:11 PM, Guido van Rossum <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
</div>But what operations raise EOFError? Surely you're not using<br>
raw_input()? It's really only there for teaching.<br>
<div class="Ih2E3d"><br></div></blockquote><div><br>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.<br>
<br></div></div>