Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52473
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'parameters': 0.04; 'syntax': 0.04; 'subject:Error': 0.07; 'collier': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; "'');": 0.16; 'definition.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sat,': 0.16; 'wrote:': 0.18; '(not': 0.18; 'aug': 0.22; 'header:User-Agent:1': 0.23; 'errors.': 0.24; 'script': 0.25; 'header:X-Complaints-To:1': 0.27; 'function': 0.29; 'wonder': 0.29; "skip:' 10": 0.31; 'file': 0.32; 'checking': 0.33; 'third': 0.33; 'subject:the': 0.34; 'johnson': 0.35; 'but': 0.35; 'there': 0.35; 'skip:j 20': 0.36; 'charset:us- ascii': 0.36; 'subject:?': 0.36; 'should': 0.36; 'error.': 0.37; 'two': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'commands': 0.60; 'first': 0.61; 'line,': 0.68; 'skip:m 50': 0.68; 'mistake': 0.91; '2013': 0.98 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Dave Angel <davea@davea.name> |
| Subject | Re: Am I not seeing the Error? |
| Date | Tue, 13 Aug 2013 21:16:18 +0000 (UTC) |
| References | <mailman.451.1376187574.1251.python-list@python.org> <kue4u9$ja1$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | 174.32.174.30 |
| User-Agent | XPN/1.2.6 (Street Spirit ; Linux) |
| 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 | <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.547.1376428605.1251.python-list@python.org> (permalink) |
| Lines | 53 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1376428605 news.xs4all.nl 15947 [2001:888:2000:d::a6]:39475 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:52473 |
Show key headers only | View raw
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.
>
The mistake is not that it's missing the 3rd, but that the first two
semicolons should have been commas. These are parameters to a function
call multiprocessing.Process()
--
Signature file not found
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