[Twisted-Python] Async generators

Tommi Virtanen tv at twistedmatrix.com
Sat Sep 14 10:53:50 EDT 2002


	Thought this might interest some of you:

http://effbot.org/zone/asyncore-generators.htm

"""Instead of passing events to callbacks, pass information to a
single handle function (a generator) via instance attributes. When the
handler needs more data from the network, use yield to pass control
back to the asyncore dispatcher."""

-- 
:(){ :|:&};:




More information about the Twisted-Python mailing list