> This might help: Here's an interpreter session that that > traps everything coming at sys.stdout into a StringIO object: > ### > >>> import StringIO > >>> io = StringIO.StringIO() > >>> import sys > >>> sys.stdout = io Neat Danny, I'd forgotten about stringIO in Python. Better than clunking around opening and closing temp files etc. I like it! :-) Alan G