Hacker News new | past | comments | ask | show | jobs | submit login

Interesting, this is the first Python async/comet library I've seen to take advantage of generator coroutines:

    def echo(remote_addr):
        their_message = yield until_eol()
        yield "you said: %s\r\n" % their_message.strip()



There are actually quite a number of (yes, relatively dead) projects that do this or something very similar: eventlet, gevent, cogen, concurrence, weightless, ...


Just for the record, eventlet and concurrence are not dead, I even used the latter in production.

They both have a fairly small audience but when you look at their mailing lists you'll see activity.


Twisted does it with inlineCallback




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: