Re: [python-win32] pure python way to open a file with write deny for others

2020-03-09 Thread Robin Becker
On 06/03/2020 21:04, Preston Landers wrote: Is advisory file locking an option? Such as the "portalocker" module for Python? You can have your writer process obtain an exclusive lock (and block until it's obtained), while the readers obtain shared locks for the duration of their read. thanks, bu

Re: [python-win32] pure python way to open a file with write deny for others

2020-03-09 Thread Robin Becker
On 06/03/2020 22:04, Eryk Sun wrote: On 3/6/20, Robin Becker wrote: OK I want to read the (small) file completely. The other process may try to re-write the file while I am reading it. I thought the other process already had the file open for writing, but apparently you just want to deny any