Message407961
Thank you for your replies. I have been reading more and conclude that I/O programming on Windows and Linux are two different things.
Python is not cross-platform in the sense that a Python program always works on different operating systems but that you can make it work on different operating systems (most of the time).
My application uses the PyPi package cachelib. The file system interface is implemented in this file:
https://github.com/pallets/cachelib/blob/main/src/cachelib/file.py
This package uses os.replace and other file I/O methods.
From what I understand is that this package must be modified to also handle WinError 5 and Errno 13 if you want to use it on Windows,
meaning more specific exception handling and adding retries and a delay for every I/O related function accessing the os.replace file.
Please correct me if I am wrong. |
|
Date |
User |
Action |
Args |
2021-12-07 18:46:12 | hancos | set | recipients:
+ hancos, eric.smith, eryksun |
2021-12-07 18:46:12 | hancos | set | messageid: <1638902772.0.0.267522977964.issue46003@roundup.psfhosted.org> |
2021-12-07 18:46:11 | hancos | link | issue46003 messages |
2021-12-07 18:46:11 | hancos | create | |
|