Index: Include/pystate.h =================================================================== RCS file: /cvsroot/python/python/dist/src/Include/pystate.h,v retrieving revision 2.20 diff -c -r2.20 pystate.h *** Include/pystate.h 3 Sep 2002 20:10:44 -0000 2.20 --- Include/pystate.h 7 Oct 2002 14:12:46 -0000 *************** *** 67,72 **** --- 67,74 ---- PyObject *dict; + int tick_counter; + /* XXX signal handlers should also be here */ } PyThreadState; Index: Python/ceval.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v retrieving revision 2.338 diff -c -r2.338 ceval.c *** Python/ceval.c 3 Oct 2002 09:53:11 -0000 2.338 --- Python/ceval.c 7 Oct 2002 14:12:47 -0000 *************** *** 681,686 **** --- 681,687 ---- if (--_Py_Ticker < 0) { _Py_Ticker = _Py_CheckInterval; + tstate->tick_counter++; if (things_to_do) { if (Py_MakePendingCalls() < 0) { why = WHY_EXCEPTION;