[Python-ideas] Cofunctions - Back to Basics

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Oct 31 08:08:40 CET 2011

Matt Joiner wrote:
> I've had a lot of success
> with the greenlet model, it's quite trivial to wrap it up to
> implicitly spawn an IO loop under the covers. The downside is that all
> the client code needs to be adjusted to defer blocking calls to the
> loop, or the entire standard library must be hooked. Again, this
> doesn't play well with the C stuff: Native C modules, or any third
> party calls that don't expect to be part of the greenlet model will
> block entire threads.

That seems to be true of *any* approach, short of using a
hacked libc that replaces all the system calls.


More information about the Python-ideas mailing list