you could also just have one process do the writing for both processes via pipes.<br><br><div class="gmail_quote">On Thu, Mar 18, 2010 at 12:20 AM, Gabriel Genellina <span dir="ltr"><<a href="mailto:gagsl-py2@yahoo.com.ar">gagsl-py2@yahoo.com.ar</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">En Wed, 17 Mar 2010 23:42:46 -0300, <<a href="mailto:python@bdurham.com" target="_blank">python@bdurham.com</a>> escribió:<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a way to open a file for shared write mode under<br>
Windows?<br>
<br>
I have 2 processes that will write to different regions of this<br>
shared file.<br>
</blockquote>
<br></div>
Using the pywin32 package at sourceforge, you have access to the CreateFile function: <a href="http://msdn.microsoft.com/en-us/library/aa363858(v=VS.85).aspx" target="_blank">http://msdn.microsoft.com/en-us/library/aa363858(v=VS.85).aspx</a><br>

You want dwShareMode=FILE_SHARE_WRITE<br>
<br>
-- <br>
Gabriel Genellina<br><font color="#888888">
<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>