Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52482
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@mrabarnett.plus.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'subject:not': 0.03; 'syntax': 0.04; 'subject:Error': 0.07; 'collier': 0.09; "'');": 0.16; 'definition.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'sat,': 0.16; 'wrote:': 0.18; '(not': 0.18; 'basically': 0.19; 'aug': 0.22; 'header:User-Agent:1': 0.23; 'errors.': 0.24; "shouldn't": 0.24; 'script': 0.25; 'header:In- Reply-To:1': 0.27; 'wonder': 0.29; "skip:' 10": 0.31; 'checking': 0.33; 'third': 0.33; 'subject:the': 0.34; 'something': 0.35; 'johnson': 0.35; 'no,': 0.35; 'received:84': 0.35; 'but': 0.35; 'there': 0.35; 'skip:j 20': 0.36; 'subject:?': 0.36; 'should': 0.36; 'error.': 0.37; 'being': 0.38; 'skip:m 40': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'commands': 0.60; 'header:Reply-To:1': 0.67; 'line,': 0.68; 'skip:m 50': 0.68; 'reply-to:no real name:2**0': 0.71; 'reply-to:addr:python.org': 0.84; '2013': 0.98 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.1 cv=ZMDuxxLb c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=0kkAYlmtguIA:10 a=l6kMEWQ2lXoA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=wf1d_5iwg3kA:10 a=uiGgIT7Nsx_KYQcZyYsA:9 a=wPNLvfGTeEIA:10 |
| X-AUTH | mrabarnett:2500 |
| Date | Wed, 14 Aug 2013 00:44:42 +0100 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Am I not seeing the Error? |
| References | <mailman.451.1376187574.1251.python-list@python.org> <kue4u9$ja1$1@dont-email.me> |
| In-Reply-To | <kue4u9$ja1$1@dont-email.me> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | python-list@python.org |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.554.1376437480.1251.python-list@python.org> (permalink) |
| Lines | 51 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1376437480 news.xs4all.nl 15927 [2001:888:2000:d::a6]:44150 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:52482 |
Show key headers only | View raw
On 13/08/2013 21:28, Denis McMahon wrote:
> On Sat, 10 Aug 2013 22:19:23 -0400, Devyn Collier Johnson wrote:
>
>> I am checking my 1292-line script for syntax errors. I ran the following
>> commands in a terminal to check for errors, but I do not see the error.
>
>> JOB_WRITEURGFILES =
>> multiprocessing.Process(write2file('./mem/ENGINE_PID', ENGINEPID);
>> write2file(SENTEMPPATH, ''); write2file(INPUTMEM, ''));
>> JOB_WRITEURGFILES.start()
>
> When I expand this out to one item per line,
>
> JOB_WRITEURGFILES =
> multiprocessing.Process
> (
> write2file
> (
> './mem/ENGINE_PID'
> ,
> ENGINEPID
> )
> ;
> write2file
> (
> SENTEMPPATH
> ,
> ''
> )
> ;
> write2file
> (
> INPUTMEM
> ,
> ''
> )
> )
> ;
> JOB_WRITEURGFILES.start()
>
> and I wonder (not being familiar with multiprocessing) if perhaps there
> should have been a third ";" after the third write2file in the job
> definition.
>
No, there shouldn't be _any_ semicolons.
Basically it should be something like:
my_process = multiprocessing.Process(target=my_function)
my_process.start()
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-10 22:19 -0400
Re: Am I not seeing the Error? John Gordon <gordon@panix.com> - 2013-08-12 14:47 +0000
Re: Am I not seeing the Error? Denis McMahon <denismfmcmahon@gmail.com> - 2013-08-13 20:28 +0000
Re: Am I not seeing the Error? Dave Angel <davea@davea.name> - 2013-08-13 21:16 +0000
Re: Am I not seeing the Error? MRAB <python@mrabarnett.plus.com> - 2013-08-14 00:44 +0100
Re: Am I not seeing the Error? Ned Batchelder <ned@nedbatchelder.com> - 2013-08-13 20:00 -0400
Re: Am I not seeing the Error? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-08-14 13:20 +1200
Re: Am I not seeing the Error? Joshua Landau <joshua@landau.ws> - 2013-08-14 07:59 +0100
Re: Am I not seeing the Error? Chris Angelico <rosuav@gmail.com> - 2013-08-14 13:07 +0100
Re: Am I not seeing the Error? Roy Smith <roy@panix.com> - 2013-08-14 08:39 -0400
Re: Am I not seeing the Error? Joshua Landau <joshua@landau.ws> - 2013-08-14 13:34 +0100
csiph-web