no trace of PyRun_SimpleString() ???

iwl Ingo.Wolf at gmx.de
Wed Apr 18 07:52:22 EDT 2007


Hi,

it seems like I can't trace scripts run by PyRun_SimpleString():

a=0
def test(frame, event, arg):
 global a
 a+=1

import sys
sys.settrace(test)
print a
print a
print a

->
0
0
0

Does anybody know how I can get something similar with the
C-Funcs for Tracing??




More information about the Python-list mailing list