[Python-Dev] mmap.flush [was: NeedsReview keyword] (original) (raw)
Ralf Schmitt schmir at gmail.com
Tue Apr 15 23:37:32 CEST 2008
- Previous message: [Python-Dev] Patch submitted for xmlrpclib
- Next message: [Python-Dev] mmap.flush [was: NeedsReview keyword]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Apr 15, 2008 at 11:20 PM, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> > 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 the > result being returned. > > > sorry no.
Sorry no what?
mmap.flush returns different values for windows/unix like platforms in case it succeeds. 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.
Regards, Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20080415/66539465/attachment.htm
- Previous message: [Python-Dev] Patch submitted for xmlrpclib
- Next message: [Python-Dev] mmap.flush [was: NeedsReview keyword]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]