On 2007-05-11, HMS Surprise <john at datavoiceint.com> wrote: > If file writing has no return value (http://docs.python.org/lib/bltin- > file-objects.html), how do you know if the write was successful? Because no exception was thrown? Although bear in mind that some errors might not become apparent until you close or flush the file.