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: 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 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: In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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()