File writing success

Jon Ribbens jon+usenet at unequivocal.co.uk
Fri May 11 15:18:58 EDT 2007


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.



More information about the Python-list mailing list