3 ms·
Interesting, this is the first Python async/comet library I've seen to take advantage of generator coroutines: def echo(remote_addr): their_message
by simonw 17y ago
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()
- z8000 17y agoThere are actually quite a number of (yes, relatively dead) projects that do this or something very similar: eventlet, gevent, cogen, concurrence, weightless, ...
- moe 17y agoJust 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.
- ddispaltro 17y agoTwisted does it with inlineCallback