This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hancos
Recipients eric.smith, eryksun, hancos
Date 2021-12-07.18:46:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638902772.0.0.267522977964.issue46003@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-12-07 18:46:12hancossetrecipients: + hancos, eric.smith, eryksun
2021-12-07 18:46:12hancossetmessageid: <1638902772.0.0.267522977964.issue46003@roundup.psfhosted.org>
2021-12-07 18:46:11hancoslinkissue46003 messages
2021-12-07 18:46:11hancoscreate