Buffered streaming
Ken Seehart
ken at seehart.com
Thu Nov 26 13:02:26 EST 2009
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?
I'm using python 2.6.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091126/0502395b/attachment-0001.html>
More information about the Python-list
mailing list