Trouble using sys.settrace
- From: "tleeuwenburg@xxxxxxxxx" <tleeuwenburg@xxxxxxxxx>
- Date: Thu, 30 Aug 2007 19:31:29 -0000
The code below produces no output. I would expect to see:
tracing...
tracing...
tracing...
tracing...
tracing...
I was wondering if anyone had any experience with this.
=================================
import sys
def mytrace(frame, event, arg):
print "tracing..."
sys.settrace(mytrace)
def foo():
for i in range(5):
print i
foo()
.
- Follow-Ups:
- Re: Trouble using sys.settrace
- From: tleeuwenburg@xxxxxxxxx
- Re: Trouble using sys.settrace
- Prev by Date: Re: Simple elementtree question
- Next by Date: Re: Trouble using sys.settrace
- Previous by thread: pure python for sms
- Next by thread: Re: Trouble using sys.settrace
- Index(es):
Relevant Pages
|