Message415587
The os module provides a pretty low level simple shim over platform APIs. It is better for logic like this to live in a higher level application library rather than make big assumptions on the part of the user.
```
try:
os.fdatasync(fd)
except Exception as err:
logging.debug("fdatasync(fd) failed %s, falling back to fsync(fd)", err)
os.fsync(fd)
``` |
|
Date |
User |
Action |
Args |
2022-03-20 01:17:55 | gregory.p.smith | set | recipients:
+ gregory.p.smith, ronaldoussoren, serhiy.storchaka, gmelikov, cebtenzzre |
2022-03-20 01:17:54 | gregory.p.smith | set | messageid: <1647739074.96.0.830453133859.issue39640@roundup.psfhosted.org> |
2022-03-20 01:17:54 | gregory.p.smith | link | issue39640 messages |
2022-03-20 01:17:54 | gregory.p.smith | create | |
|