Vernon Cole wrote: >sys.stdout works like a normal Python file, so you should be able to assign >a new file object to it. Yes, that looks like a clean and simple approach, that I may end up using, if nothing else for debugging. Thanks, Gertjan.