no trace of PyRun_SimpleString() ???

I

iwl

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??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top