bpo-2122: Make mmap.flush() behave same on all platforms#8692
bpo-2122: Make mmap.flush() behave same on all platforms#8692berkerpeksag merged 7 commits intopython:masterfrom
Conversation
|
Is it possible to test a failed Since this is a behavior breaking change, please add a note in What's New (section "Changes in the Python API"). |
6001194 to
04ce1f1
Compare
It's possible to get
Done. |
|
Since we already do range checking in |
| can also be retrieved using the :meth:`~asyncio.Task.get_name` method. | ||
|
|
||
| * The :meth:`mmap.flush() <mmap.mmap.flush>` method now returns ``None`` on | ||
| success and raises an exception on error under all platforms. Previously, |
There was a problem hiding this comment.
I think it would be better to accent the main reason of this change. "Previously, the behavior was platform-depended: on success, a nonzero value was returned under Windows and a zero value was returned under Unix, on error, zero was returned under Windows and an exception was raised under Unix." Maybe native speakers can suggest better wording. In any case this PR LGTM.
There was a problem hiding this comment.
You're right, I just tweaked it a bit.
https://bugs.python.org/issue2122