[Python-Dev] Coroutines (PEP 342)

Bruce Eckel BruceEckel-Python3234 at mailblocks.com
Mon Nov 14 23:46:58 CET 2005

I just finished reading PEP 342, and it appears to follow Hoare's
Communicating Sequential Processes (CSP) where a process is a
coroutine, and the communicaion is via yield and send(). It seems that
if you follow that form (and you don't seem forced to, pythonically),
then synchronization is not an issue.

What is not clear to me, and is not discussed in the PEP, is whether
coroutines can be distributed among multiple processors. If that is or
isn't possible I think it should be explained in the PEP, and I'd be
interested in know about it here (and ideally why it would or wouldn't


Bruce Eckel

More information about the Python-Dev mailing list