> 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 an easier pure python way to do
>
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
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,
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 anyone the right to open the file
with
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.
Readers don't block other readers, while writers block
Robin Becker wrote:
On 05/03/2020 16:04, Eryk Sun wrote:
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.
OK I want to read the (small)
On 05/03/2020 16:04, Eryk Sun wrote:
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.
OK I want to read the (small) file completely. The
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
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
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*/
10 matches
Mail list logo