Fine thread control, Run only n bytecodes

David Pokorny davebrok at
Fri Jul 16 21:08:04 CEST 2004

I'd like to be able to take a function or other chunk of code (that someone
else has written), run it for, say 50 byte codes, and then return control
back to my program/controlling thread until my program/controlling thread
indicates that it wants to run the next 50 bytes codes of the foreign
program, etc...

Is there an extension to the python threading module that supports such fine

David Pokorny

More information about the Python-list mailing list