Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59256
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.020 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'calls.': 0.09; 'spelled': 0.09; 'subject:using': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'redirects': 0.16; 'subject:skip:m 10': 0.16; 'sys.stdout': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'bit': 0.19; 'replace': 0.24; 'logging': 0.26; 'skip:" 30': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'getting': 0.31; '13,': 0.31; 'text': 0.33; 'could': 0.34; 'problem': 0.35; 'subject:with': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'object,': 0.36; 'thanks': 0.36; 'should': 0.36; 'nov': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'reply': 0.66; 'isaac': 0.84; 'write()': 0.91; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=48uJFbQUEhnH5rMJTXbDxlomyxSI/mmQkHaJ7Bza3qo=; b=kteZHgah772lhrXbZxHXVv0nKqQMAM5uH69n4b0sxGwiumApaDlQJwqYynipYrLDaW BF0+f1mpXA3GAjQ7qfohrvDOsCs2qthYLyPZhwEs7B9J3/HCOw442USLz7I7pa7n37Xe sf4nnZL0JOB959wOM7o3/lILtaTOYz1diMc60q/v/eX6iKdQaL+PAqC5pSt282VnFxs7 9ef/CgH0w8Md/FjqwTT0zemmOBYaIXQmU4n1QrPCrCJJGKeKWOoY4r/gzyjocr1guGVv QmWp/1p9XQSDCr/8zF+CUurdj0lao1QzA16Ygtgc1EMwveRm4F4bsngTZcPsVPDWAwHZ CVTg== |
| MIME-Version | 1.0 |
| X-Received | by 10.68.6.170 with SMTP id c10mr38120320pba.101.1384297787454; Tue, 12 Nov 2013 15:09:47 -0800 (PST) |
| In-Reply-To | <c856f8e9-6f84-4fea-afa6-771a9bd73ed0@googlegroups.com> |
| References | <f9d2f31f-e244-42c2-848c-59acf50b6e10@googlegroups.com> <mailman.2488.1384287582.18130.python-list@python.org> <c856f8e9-6f84-4fea-afa6-771a9bd73ed0@googlegroups.com> |
| Date | Wed, 13 Nov 2013 10:09:47 +1100 |
| Subject | Re: using print() with multiprocessing and pythonw |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2503.1384297790.18130.python-list@python.org> (permalink) |
| Lines | 11 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1384297790 news.xs4all.nl 15886 [2001:888:2000:d::a6]:40162 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:59256 |
Show key headers only | View raw
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