|
|
|
|
|
by rdtsc
4837 days ago
|
|
No magic there. It is Eventlet and Gevent have that magic. Here is how that looks: def getresp():
s = socket()
s.connect((host,port))
s.sendall(s,b'xyzzy')
data = s.recv(s,100)
Compare that to any of the above. This is what is thrown away in favor of 'yield from' and @coroutine mess coupled with a completely parallel set of IO libraries. |
|
But that's just a nitpick.