Re: using print() with multiprocessing and pythonw

2013-11-12 Thread Chris Angelico
On Wed, Nov 13, 2013 at 7:22 AM, Isaac Gerg wrote: > Thanks for the reply Bill. The problem is the text i am getting is from a > python warning message, not one of my own print() function calls. Since sys.stdout is just an object, you could replace it with something that redirects its write() c

Re: using print() with multiprocessing and pythonw

2013-11-12 Thread Isaac Gerg
Thanks for the reply Bill. The problem is the text i am getting is from a python warning message, not one of my own print() function calls. -- https://mail.python.org/mailman/listinfo/python-list

Re: using print() with multiprocessing and pythonw

2013-11-12 Thread William Ray Wing
On Nov 12, 2013, at 2:12 PM, Isaac Gerg wrote: > I launch my program with pythonw and begin it with the code below so that all > my print()'s go to the log file specified. > > if sys.executable.find('pythonw') >=0: ># Redirect all console output to file. >sys.stdout = open("pyt

using print() with multiprocessing and pythonw

2013-11-12 Thread Isaac Gerg
I launch my program with pythonw and begin it with the code below so that all my print()'s go to the log file specified. if sys.executable.find('pythonw') >=0: # Redirect all console output to file. sys.stdout = open("pythonw - stdout stderr.log",'w') sys.stderr = sys.std