Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59256
| References | <f9d2f31f-e244-42c2-848c-59acf50b6e10@googlegroups.com> <mailman.2488.1384287582.18130.python-list@python.org> <c856f8e9-6f84-4fea-afa6-771a9bd73ed0@googlegroups.com> |
|---|---|
| Date | 2013-11-13 10:09 +1100 |
| Subject | Re: using print() with multiprocessing and pythonw |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2503.1384297790.18130.python-list@python.org> (permalink) |
On Wed, Nov 13, 2013 at 7:22 AM, Isaac Gerg <isaac.gerg@gergltd.com> 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() calls to the logging function.
Might be a bit hacky, but it should work.
BTW, "sys.executable.find('pythonw') >=0" should be able to be spelled
"'pythonw' in sys.executable".
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
using print() with multiprocessing and pythonw Isaac Gerg <isaac.gerg@gergltd.com> - 2013-11-12 11:12 -0800
Re: using print() with multiprocessing and pythonw William Ray Wing <wrw@mac.com> - 2013-11-12 15:19 -0500
Re: using print() with multiprocessing and pythonw Isaac Gerg <isaac.gerg@gergltd.com> - 2013-11-12 12:22 -0800
Re: using print() with multiprocessing and pythonw Chris Angelico <rosuav@gmail.com> - 2013-11-13 10:09 +1100
csiph-web