Is it possible to override "__setattr__" of a module? I want to capture changes to global variables for debug purposes. None of the following seem to have any effect. modu.__setattr__ = myfn setattr(modu, "__setattr__", myfn) delattr(modu, "__setattr__") John Nagle