On 26Mar2010 07:29, Sebastien Binet <seb.bi...@gmail.com> wrote: | On Mar 25, 10:39 pm, Winston <winst...@stratolab.com> wrote: | > A Baton object for generators to allow subfunction to yield, and to | > make them symetric. | | isn't a Baton what CSP calls a channel ?
I was thinking about this (roughly) in the shower this morning before seeing this message. One difference is that a Channel or zero-storage Queue lets the putter continue execution after the put (or at least the other side's get). A co-routine won't proceed until later, no? So a co-routine setup will do lazier computation than a similar threaded setup. Cheers, -- Cameron Simpson <c...@zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/ Principles have no real force except when one is well fed. - Mark Twain -- http://mail.python.org/mailman/listinfo/python-list