Limiting thread intruction count
mac4-devnull at theory.org
Tue Jul 10 20:15:35 CEST 2001
COOL! Thats a good tip. Thanks a lot.
In article <9i9spk$1hr$1 at verence.demon.co.uk>, "Paul Wright"
<-$Paul$- at verence.demon.co.uk> wrote:
> Greg Stein has a Robot Wars implementation which does what you want by
> playing with thread locks in a function which is a sys.settrace hook.
> sys.settrace lets you specify a function to run after every line of code
> (it's intended for people writing debuggers).
> (Unfortunately it's not a complete implementation: it'd be a cool way to
> help beginners learn Python, especially those with a limited attention
> span :-)
To reply to me via email, remove the '-devnull' from my address.
More information about the Python-list