<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Ok, I'm trying to send some python objects from one Python process to another, on the same machine.<br><br>The problem is well defined and simple:<br>1. There are only 2 processes: 1 is always waiting, 1 is always sending.<br>2. As soon as a datastructure is fully sent by process1, process2 must receive it immediately (I mean there must be no buffering)<br>3. The processes can be given some data when they start (for example a port or something of that nature, or a filename).<br>4. They're on the same machine<br><br>So technically I'd like to do:<br>Process1: data = ((1,2,"abc",{d:"ef"}),2)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; send(data)<br><br>Process2: data = receive();
 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print data # And here you get the data sent by process1 (and note it's a python object, tuple, dict ...)<br><br>I'd like to know if there's an elegant way to do this in Python, I did a google search but I keep running into server/clients for exchanging HTTP or other internet stuff which is not really what I'm looking for.<br><br>Thanks,<br><br>David<br></div></div><br>

      </body></html>