Wade Brainerd <wade at treyarch.com>: > Instead, subroutines with a wait_ prefix execute yield > statements which are automatically propogated up the call stack all the > way to the thread manager. > > Is there anything to be done about this in Python? Python generators aren't really designed for use as general-purpose coroutines, and trying to use them as such is messy. You might like to investigate Stackless Python, which has real microthreads that *are* designed for the sort of thing you're doing. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4