I will shamelessly point out my decorator module: http://www.phyast.pitt.edu/~micheles/python/decorator.zip
The documentation is here: http://www.phyast.pitt.edu/~micheles/python/documentation.htm There is an example of redirecting stdout which is relevant to this thread. HTH, Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list