[Stackless] Stackless and mysqldb

Simon Pickles sipickles at hotmail.com
Sun Jan 13 23:01:53 CET 2008


Hello,

i'm trying to get my head round stackless programming. Its fun but I 
have one question.

Say for instance, I want to do a mysql select call, but I don't want to 
block the interpreter waiting for the call to complete.

How can this be achieved in a stackless framework?

Do I still need to use a separate threading.thread to perform the actual 
lockup, keeping the main threadlet running? can I use channels to 
communicate the SQL result from a separate threading.thread to a 
stackless threadlet in main thread?

Thanks

Si

-- 
Linux user #458601 - http://counter.li.org.







More information about the Stackless mailing list