Does Python have sync?
linux, python, synchronization
Solution
Python 3.3 has os.sync, see the docs. The source confirms it is the same thing.
For Python 2 you can to make an external call to the system:
from subprocess import check_call
check_call(['sync'])
Problem
The sync man page says: sync() causes all buffered modifications to file metadata and data to be written to the underlying file systems. Does Python have a call to do this? P.S. Not fsync, I see that.