Re: Concurrent writes to the same file

2013-07-11 Thread Cameron Simpson
On 10Jul2013 22:57, Jason Friedman jsf80...@gmail.com wrote: | Other than using a database, what are my options for allowing two processes | to edit the same file at the same time? When I say same time, I can accept | delays. I considered lock files, but I cannot conceive of how I avoid race |

Re: Concurrent writes to the same file

2013-07-11 Thread Nobody
On Wed, 10 Jul 2013 22:57:09 -0600, Jason Friedman wrote: Other than using a database, what are my options for allowing two processes to edit the same file at the same time? When I say same time, I can accept delays. What do you mean by edit? Overwriting bytes and appending bytes are simple

Re: Concurrent writes to the same file

2013-07-11 Thread Neal Becker
Dave Angel wrote: On 07/11/2013 12:57 AM, Jason Friedman wrote: Other than using a database, what are my options for allowing two processes to edit the same file at the same time? When I say same time, I can accept delays. I considered lock files, but I cannot conceive of how I avoid race

Re: Concurrent writes to the same file

2013-07-11 Thread Jason Friedman
https://bitbucket.org/cameron_simpson/css/src/374f650025f156554a986fb3fd472003d2a2519a/lib/python/cs/fileutils.py?at=default#cl-408 That looks like it will do the trick for me, thank you Cameron. -- http://mail.python.org/mailman/listinfo/python-list

Concurrent writes to the same file

2013-07-10 Thread Jason Friedman
Other than using a database, what are my options for allowing two processes to edit the same file at the same time? When I say same time, I can accept delays. I considered lock files, but I cannot conceive of how I avoid race conditions. -- http://mail.python.org/mailman/listinfo/python-list

Re: Concurrent writes to the same file

2013-07-10 Thread Dave Angel
On 07/11/2013 12:57 AM, Jason Friedman wrote: Other than using a database, what are my options for allowing two processes to edit the same file at the same time? When I say same time, I can accept delays. I considered lock files, but I cannot conceive of how I avoid race conditions. In