nobody <pete...@xs4all.nl> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46003> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com