Hrm, it sounds likely that I am using something mutable and that is messing things up. I'll look into it.<br><br>As for providing sample code to recreate the problem, I would find it difficult I think to provide a simple example that accurately reflects what is truly going on so there wouldn't be much point. <br>
<br>Cheers,<br>nnp<br><br><div class="gmail_quote">On Thu, Apr 3, 2008 at 5:39 AM, Gabriel Genellina <<a href="mailto:gagsl-py2@yahoo.com.ar">gagsl-py2@yahoo.com.ar</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
En Wed, 02 Apr 2008 10:52:08 -0300, nnp <<a href="mailto:version5@gmail.com">version5@gmail.com</a>> escribió:<br>
<div class="Ih2E3d"><br>
> Basically I have a system where component 1, 2 and 3 communicate with<br>
> each<br>
> other using two Python Queues, we'll call them R and W. Here is what is<br>
> happening<br>
><br>
> 1 writes data to W and reads from R<br>
> 2 reads data from W and writes data it receives from 3 to R (but not<br>
> data it<br>
> receives from 1)<br>
> 3 writes to W<br>
><br>
> The problem is that data being written by 1 to W is appearing back on R.<br>
> I<br>
> have verified that 1 never writes to R and that 2 never writes data it<br>
> receives from 1 to R, by overwriting the put() and put_nowait() methods<br>
> of<br>
> R.<br>
><br>
> Is there any other way for data to get onto a queue or are there any<br>
> known<br>
> bugs with Python's Queue module that could lead to this kind of<br>
> behaviour?<br>
<br>
</div>Yes, your own code :)<br>
Perhaps you put mutable objects into the queue, like a list? and later<br>
modify the list in another place?<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><br clear="all"><br>-- <br><a href="http://www.smashthestack.org">http://www.smashthestack.org</a><br><a href="http://www.unprotectedhex.com">http://www.unprotectedhex.com</a>