Limiting thread intruction count

Neil Macneale mac4-devnull at
Tue Jul 10 14:15:35 EDT 2001

COOL!  Thats a good tip.  Thanks a lot.

Neil Macneale

In article <9i9spk$1hr$1 at>, "Paul Wright"
<-$Paul$- at> 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 mailing list