Python generators (coroutines)

rocco.rossi at gmail.com rocco.rossi at gmail.com
Wed Apr 23 16:17:46 CEST 2008


I would really like to know more about python 2.5's new generator
characteristics that make them more powerful and analogous to
coroutines. Is it possible for instance to employ them in situations
where I would normally use a thread with a blocking I/O (or socket)
operation? If it is, could someone show me how it can be done? There
appears to be a very limited amount of documentation in this repect,
unfortunately.

Thank you.



More information about the Python-list mailing list