Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'syntax': 0.04; 'yet.': 0.04; 'odd': 0.07; 'subject:Error': 0.07; 'suddenly': 0.07; 'tries': 0.07; 'string': 0.09; "'')": 0.09; 'arguments': 0.09; 'collier': 0.09; 'ide': 0.09; 'lines.': 0.09; 'literal': 0.09; 'separating': 0.09; 'structure,': 0.09; 'style.': 0.09; 'variables.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; "'');": 0.16; 'eclipse': 0.16; 'expression.': 0.16; 'fine.': 0.16; 'indent': 0.16; 'intended.': 0.16; 'reedy': 0.16; 'roy': 0.16; 'unexpected': 0.16; 'way;': 0.16; ':-)': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'code.': 0.18; 'pointed': 0.19; 'replacing': 0.19; 'split': 0.19; 'starts': 0.20; '>>>': 0.22; 'aug': 0.22; 'putting': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'cc:2**0': 0.24; "i've": 0.25; 'handling': 0.26; 'this:': 0.26; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; 'am,': 0.29; "i'm": 0.30; 'code': 0.31; 'lines': 0.31; '>>>>': 0.31; 'agreed.': 0.31; 'helpful.': 0.31; 'piece': 0.31; 'there.': 0.32; 'figure': 0.32; 'text': 0.33; 'bugs': 0.33; 'call.': 0.33; 'maybe': 0.34; 'subject:the': 0.34; 'problem': 0.35; "can't": 0.35; 'tool': 0.35; 'something': 0.35; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'everyone.': 0.36; 'shorter': 0.36; 'skip:j 20': 0.36; 'next': 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'wrong': 0.37; 'too': 0.37; 'two': 0.37; 'auto': 0.38; 'pm,': 0.38; 'previous': 0.38; 'little': 0.38; 'does': 0.39; 'sure': 0.39; 'skip:u 10': 0.60; "you're": 0.61; 'further': 0.61; 'you.': 0.62; 'become': 0.64; 'more': 0.64; 'different': 0.65; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'skip:m 50': 0.68; 'smith': 0.68; 'obvious': 0.74; 'article': 0.77; '95%': 0.84; 'understand,': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=+koAfq5ug5mQo1qHHWXITbf3X02EqpJuc+fBn+ZrT8E=; b=JmTqBAlSGJ/sHv0wxrVFt/8QFADjuHsfcnpD+4GnUa17fE6QPmXprYmWEdwWgtgOwC xizEjkh4jikKA2yZdDQ1wYnnSBmlpcrtllTaHwuG4f0sVgTfYsGdMmH6Odf0C0EuxOHw KOD6K2R/Ox/T9wcjbbv2vX8VTFfHOpbbNszSUOl1Eor4fPtFSyT7iAFZECQk9PL6stF6 3tXTZKfwF3Tz1rmwNp577Vsy8dcEuFL0n89E57m9rOuNpBKM3iUr+ISksYQ9soaT3SPm 8Lu0AL3UoLu3vK3PIsxTdqA1bwDHtaRL8VYALBel+VKLwiAqNjHSAxwWW4jC3/0/ObWW w5+A== X-Received: by 10.220.166.77 with SMTP id l13mr13109301vcy.60.1376316115973; Mon, 12 Aug 2013 07:01:55 -0700 (PDT) Sender: Ned Batchelder Date: Mon, 12 Aug 2013 10:01:55 -0400 From: Ned Batchelder User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Devyn Collier Johnson Subject: Re: Am I not seeing the Error? References: <5206F4AB.8050204@Gmail.com> <5208D625.2000103@Gmail.com> In-Reply-To: <5208D625.2000103@Gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Python Mailing List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 52 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376316118 news.xs4all.nl 15865 [2001:888:2000:d::a6]:34794 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52415 On 8/12/13 8:33 AM, Devyn Collier Johnson wrote: > > On 08/10/2013 10:47 PM, Chris Angelico wrote: >> On Sun, Aug 11, 2013 at 3:43 AM, Roy Smith wrote: >>> In article , >>> Chris Angelico wrote: >>> >>>> When you get a syntax error you can't understand, look at the previous >>>> line of code. Perhaps something there is incomplete; maybe you have >>>> mismatched parentheses, so this line is considered to be part of the >>>> same expression. >>>> >>>> Next thing to do is split it into more lines. Why is all that in a >>>> single >>>> line? >>> Also, try reformatting the code in a tool like emacs or eclipse which >>> does syntax coloring and auto indenting. Often, if you're missing some >>> piece of punctuation, it will become obvious when your tool tries to >>> indent things in some unexpected way. Or suddenly starts coloring all >>> of your program text as if it were a string literal :-) >> Agreed. Though I've had some odd issues with SciTE in that way; I >> think its Python handling may have bugs in it here and there. But 95% >> of the time it's helpful. >> >> ChrisA > > Thanks everyone. Unfortunately, I have not found the problem yet. I > use the Geany IDE which has syntax highlighting, but nothing wrong is > seen. None of the suggestions helped. The lines before this one set > variables. The lines further up "appear" fine. I will keep looking. If > I ever figure it out, I will share with all of you. > As Terry Reedy pointed out, you have semicolons separating arguments in a function call. This is your line of code: JOB_WRITEURGFILES = multiprocessing.Process(write2file('./mem/ENGINE_PID', ENGINEPID); write2file(SENTEMPPATH, ''); write2file(INPUTMEM, '')); JOB_WRITEURGFILES.start() Replacing names with shorter ones to see the structure, it's like this: J = m.P( w('', E); w(S, ''); w(I, '') ); J.s() You have three semicolons in that line. Two are inside a call, though I'm not sure that's what you intended. One is separating statements. You might be a little too attached to your "more readable" style. Putting things on different lines really does help you see what is going on. --Ned.