main icon indicating copy to clipboard operation
main copied to clipboard

sys.settrace doesn't trace through modules

Open ironpythonbot opened this issue 9 years ago • 1 comments

test.py:

import sys  
def f(*args):  
    print args
    return f

sys.settrace(f)  

import test2  

test2.py:

print 'a'  
print 'b'  
print 'c'  

def f():  
    print 'hi'

f()  

Work Item Details

Original CodePlex Issue: Issue 24381 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Aug 19, 2009 at 5:28 PM Reported by: dinov Updated on: Feb 22, 2013 at 2:11 AM Updated by: jdhardy Test: modules.sys_related.sys_test.test_cp24381

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot

On 2010-02-16 02:01:13 UTC, dfugate commented:

Not fixed. Make sure the regression in sys_test.py passes before closing.

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot