[issue39640] fall back os.fdatasync() to fsync() on POSIX systems without fdatasync() support
George Melikov
report at bugs.python.org
Sat Feb 15 14:42:16 EST 2020
George Melikov <mail at gmelikov.ru> added the comment:
If there is a way not to sync data - you should use neither fdatasync nor fsync.
So IMHO if someone wants to sync data and want to use fdatasync - I see the only way on MacOS is to use fsync().
> Note also that this change will not help to run code with fdatasync() on MacOS without fallbacks in Python code until you drop support of all Python versions older than 3.9.
I agree, but I propose to make this change in 3.9 to get it somewhere in future.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39640>
_______________________________________
More information about the Python-bugs-list
mailing list