Re: How to log python Shell results

2007-08-03 Thread kyosohma
On Aug 3, 10:14 am, Colly <[EMAIL PROTECTED]> wrote: > How do I output the IDLE 1.2.1 Python Shell results to a log file. Redirect stdout to the log file. out = sys.stdout # save stdout for restoration later f = open(r'c:\test\test.log', 'w') sys.stdout = f # now stdout is redirected # do so

How to log python Shell results

2007-08-03 Thread Colly
How do I output the IDLE 1.2.1 Python Shell results to a log file. -- http://mail.python.org/mailman/listinfo/python-list