Semantics of file.close()

Matthew Woodcraft mattheww at chiark.greenend.org.uk
Tue Jul 17 18:36:57 EDT 2007


Donn Cave  <donn at u.washington.edu> wrote:
> I don't think there's any remedy for it, other than the obvious -
> either always flush, or wrap an explicit close in its own exception
> handler.

Even if you have flushed, close() can give an error with some filesystems.

-M-




More information about the Python-list mailing list