If you use the stackless socket module, it can make blocking functions like network access stackless compatible. That means they block the tasklet rather than the thread, and you don't necessarily need to call schedule.
stacklesslib provides monkey patching for the socket module and a range of others. It might help you out. This is a very old example from when the stackless socket module was standalone: https://mail.python.org/pipermail/python-announce-list/2006-September/005252.html Nowadays you'd want to obtain stacklesslib and import that rather than stacklesssocket. Richard. _______________________________________________ Stackless mailing list [email protected] http://www.stackless.com/mailman/listinfo/stackless
