(original) (raw)
>Why would the program fail to recognize it? It should just look at the
> the flush fails but the programs fails to recognize it? i.e. the program
> assumes the data is written to disk but it isn't?
result being returned.
sorry no. everything else raises an error. this is not documented (as far as I can see) and mmap.flush returns 0 on unix if it succeeds, and raises an exception on unix if it fails.
on windows it returns 1 if it succeeds and 0 if it doesn't (One more time: on unix it returns 0 if it succeeds).
Regards,
- Ralf
I agree that this is fairly unpythonic, but I also think that there is
any data loss that this may cause is the application's fault.