[Python-Dev] mmap.flush [was: NeedsReview keyword]
schmir at gmail.com
Tue Apr 15 23:37:32 CEST 2008
On Tue, Apr 15, 2008 at 11:20 PM, "Martin v. Löwis" <martin at v.loewis.de>
> > > 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?
> > Why would the program fail to recognize it? It should just look at
> > result being returned.
> > sorry no.
> Sorry no what?
mmap.flush returns different values for windows/unix like platforms in case
mmap.flush raises an exception on unix like platforms for errors.
mmap.flush returns 0 on windows for errors. This is the value which is
returned on unix like platforms for a successful call.
The documentation for mmap.flush does not even mention a return value.
so, still: sorry no, the application should not just look at the result
being returned. The mmap.flush method should be fixed.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev