Message1650
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)
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:51 | admin | link | issue1738411 messages |
2008-02-20 17:17:51 | admin | create | |
|