<div class="gmail_quote">On Sun, Jan 8, 2012 at 5:08 AM, Raymond Hettinger <span dir="ltr"><<a href="mailto:raymond.hettinger@gmail.com">raymond.hettinger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div class="im"><br><div><div>there is still an important distinction between files that are closed versus files that are empty (i.e. they have a length of zero).</div></div></div></div>
</blockquote>
<div><br></div><div>and `file`s that are None. When you check f.closed explicitly - the None objects throw an exception.</div></div>