<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<span style="color: rgb(0, 0, 0);">I need to create a pipe where I
have one thread (or maybe a generator) writing data to the tail while
another python object is reading from the head.  This will run in real
time, so the
data must be deallocated after it is consumed.  Reading should
block until data is written, and writing should block when the buffer
is full (i.e. until some of the data is consumed).  I assume there must
be a trivial way to do this, but I don't see it.  Any ideas or examples?<br>
<br>
I'm using python 2.6.<br>
<br>
</span>
</body>
</html>