469,914 Members | 2,489 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,914 developers. It's quick & easy.

tracing crash

Hi,

I am facing a strange problem.
I will appreciate an explanation and a work around for the problem.

Look in the following code paste. It seems that taking a reference to
the frame object crashes python in some scripts:

#
# trace_hell.py
#
# crashes with spe (stani's python editor) v0.7.3.a
#
# to see the crash add "import trace_hell; trace_hell.unleash_hell()" as
# the first line in spe.py
#
# 1. The statement that triggers the crash is "g_frame = frame"
#

import sys

g_frame = None

def tracer(frame, event, arg):
global g_frame
g_frame = frame
return None

def unleash_hell():
sys.settrace(tracer)
Jul 19 '05 #1
0 942

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Paul Ibison | last post: by
5 posts views Thread by Dabbler | last post: by
6 posts views Thread by serge calderara | last post: by
2 posts views Thread by deepukutty | last post: by
reply views Thread by cnys | last post: by
reply views Thread by rehto | last post: by
6 posts views Thread by Stephen Torri | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.