2009/3/12 John Barham : >>> How about using queues (http://docs.python.org/library/queue.html)? >> >> no alt. > > Couldn't you implement it approximately using > http://docs.python.org/library/queue.html#Queue.Queue.qsize? no. "approximately" in this case would mean "wrong". for the time being, as i'm limited on time, i'm using pycsp with a very slim wrapper around it to make its interface palatable. it'll all be hideously inefficient, but i'm not too concerned about that currently. i've attached it in case anyone's interested. joel: multiple readers and writers isn't the same thing as alt at all - you need to be able to read from more than one channel at once. sharing a single channel between several processes doesn't get you that (although it's great to have, and the plan9/inferno channel model supports it) rog.