[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-08 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-08 Thread nobody
nobody added the comment: Thank you again, closing this issue. -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-07 Thread Eric V. Smith
Eric V. Smith added the comment: As they say, there's no such thing as "portable software", only "software that has been ported". Especially in an area like file I/O: once you move beyond simple "one process opens, writes, and closes; and another process then opens, reads, and closes", there

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-07 Thread nobody
nobody 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

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-06 Thread Eryk Sun
Eryk Sun added the comment: The os module tries to avoid documenting low-level OS behaviors. It would be unreliable and difficult to maintain. In the case of os.replace(), in Windows it calls MoveFileExW() with the flag MOVEFILE_REPLACE_EXISTING [1]. The source and destination paths must be

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-06 Thread Eric V. Smith
Eric V. Smith added the comment: I suspect anti-virus software. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list ma

[issue46003] os.replace is not cross-platform: at least improve documentation

2021-12-06 Thread nobody
New submission from nobody : When using threads, os.replace gives no errors on Linux. On Windows however you get PermissionErrors like: '[WinError 5] Access is denied' for os.replace and '[Errno 13] Permission denied' when reading the os.replace file. The only way I could get this to work was