Message1650

Author fabioz
Recipients
Date 2007-06-16.16:46:43
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
sys.settrace cannot be changed. In the pydev debugger, I'd like to give users a warning if they're trying to change sys.settrace while running the debugger, so, I was trying to change it after setting up the debugger to give a warning (and only then call the original function), but this doesn't seem to work.

The code below shows what's happening:

original = sys.settrace
sys.settrace = lambda *args,**kwargs:None
print '%s should differ %s' % (original, sys.settrace)

Is there some other way to change it under jython? (I've tried changing sys.__dict__['settrace'], but the final result is the same)



History
Date User Action Args
2008-02-20 17:17:51adminlinkissue1738411 messages
2008-02-20 17:17:51admincreate