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

2020-03-05 Thread Eryk Sun
On 3/5/20, Robin Becker wrote: > I want to be able to read a windows file which is being periodically written > by another process. I'm having difficulty reconciling this sentence with the subject line. If you want to open a file for reading that's already open for writing, then the open has to

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

2020-03-05 Thread Robin Becker
On 05/03/2020 14:19, paul.kon...@dell.com wrote: On Mar 5, 2020, at 5:42 AM, Robin Becker wrote: [EXTERNAL EMAIL] I want to be able to read a windows file which is being periodically written by another process. I created a small extension ... that seems to work, but I wonder if there's

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

2020-03-05 Thread Robin Becker
I want to be able to read a windows file which is being periodically written by another process. I created a small extension which does the following if(!PyArg_ParseTuple(args, "sss", , , )) return NULL; if(strcmp(deny, "") == 0) share = _SH_DENYNO; /*allow all*/