Xiadong Zhu <mailto1...@gmail.com> Wrote in message: > Hi, I'm learning gevent, but I didn't found the difference with gevent.sleep > and time.sleep, does anybody could give me a sample code to show their > difference? Thanks! >
gevent is a cooperative analog to the threading module. When using it you would never use time.sleep. So no example is needed. time.sleep would suspend the entire process, blocking all greenlet threads. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list