title: file.close() exception handling inside a with statement in Python
body: <p>I know that in Python the <code>file.close()</code> method doesn't have any return value, but I can't find any information on whether in some cases it throws an exception.  If it doesn't do that either, then I guess the second part of this question is superfluous.</p>
  
  <p>If it does, then what would be the "correct" way to handle the <code>file.close()</code> method throwing an exception inside a "with" statement used to open the file?</p>
  
  <p>Is there a situation where <code>file.close()</code> could fail immediately after a file has been open and read from successfully?</p>