Michele> In Linux I am doing Michele> sys.stderr=file('/dev/null','w') Michele> Is there a better way of doing that? How about: class NUL: def write(self, *args): pass sys.stderr = NUL() Skip