A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-April/078655.html below:

[Python-Dev] mmap.flush [was: NeedsReview keyword]

[Python-Dev] mmap.flush [was: NeedsReview keyword] [Python-Dev] mmap.flush [was: NeedsReview keyword]Ralf Schmitt 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>
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 
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4