Calling sys.setprofile() (with no args) makes the interpreter crash, and calling sys.settrace() with no args succeeds, even though it is documented to take 1 arg (tracefunc). And yes, my version is '2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)]' TIA