<br><br><div class="gmail_quote">On Mon, Apr 14, 2008 at 7:11 PM, Guido van Rossum &lt;<a href="mailto:guido@python.org">guido@python.org</a>&gt; 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&#39;re not using<br>
raw_input()? It&#39;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.&nbsp; Most look like reasonable uses.&nbsp; ftplib&#39;s getline() is likely the one raising it such that it is ever seen when using urrlib2.&nbsp; nntplib, telnetlib, xdrlib, getpass, aifc, chunk, sunau, gzip, &amp; mailbox also raise it.<br>
<br></div></div>