Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52416

Re: Am I not seeing the Error?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <devyncjohnson@gmail.com>
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; 'scripts': 0.03; 'programmer': 0.03; '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; 'collier': 0.09; 'ide': 0.09; 'lines.': 0.09; 'literal': 0.09; 'variables.': 0.09; 'python': 0.11; 'itself.': 0.14; 'eclipse': 0.16; 'expression.': 0.16; 'fine.': 0.16; 'hint:': 0.16; 'indent': 0.16; 'newline,': 0.16; 'roy': 0.16; 'semicolon': 0.16; 'troll': 0.16; 'unexpected': 0.16; 'way;': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'obviously': 0.18; 'trying': 0.19; 'split': 0.19; 'not,': 0.20; 'starts': 0.20; '>>>': 0.22; 'programming': 0.22; 'aug': 0.22; 'coding': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'replace': 0.24; 'mon,': 0.24; "i've": 0.25; 'handling': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'related': 0.29; 'code': 0.31; 'easier': 0.31; 'lines': 0.31; 'received:10.0.0': 0.31; '>>>>': 0.31; 'agreed.': 0.31; 'helpful.': 0.31; 'piece': 0.31; 'there.': 0.32; 'figure': 0.32; 'skip:m 30': 0.32; 'text': 0.33; 'bugs': 0.33; 'style': 0.33; 'third': 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; 'everyone.': 0.36; 'next': 0.36; 'thanks': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'received:10.0': 0.36; 'similar': 0.36; 'should': 0.36; 'error.': 0.37; 'wrong': 0.37; 'received:10': 0.37; 'being': 0.38; 'auto': 0.38; 'others.': 0.38; 'tasks': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'previous': 0.38; 'does': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'read': 0.60; "you're": 0.61; 'further': 0.61; 'you.': 0.62; 'such': 0.63; 'refer': 0.63; 'become': 0.64; 'more': 0.64; 'different': 0.65; 'here': 0.66; 'line,': 0.68; 'smith': 0.68; 'obvious': 0.74; 'article': 0.77; '95%': 0.84; 'obvious.': 0.84; 'understand,': 0.84; 'ware': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=wk34WkqvO0SseQoeWf3et4TX92I/yAyFhZx8vmhosv0=; b=o1khe8cWiQPQxYnYXg6lQVX9WhZ911Bwq5cc4BcgoqQIybccdaOK+su6S51+l9hbwW bizuYooxwVRn1eZp9yxMfGsCjyYNyYzfez5zKXLN3l71AYVc+MCXfOgy647ekmMVrovl 2NyOXqiBGeifRJGgba6MY0rmMAFOwVgt9xvvrzsuVadTDx3PQw+hTJHC/TYF3VajYftO T9ztayYXU51kYOW97IjVIxScoy89ufO7+h631aXHICgV16+RAzl6JeS8J1mux5iYJnf6 SkiksHOHjjmxewsJ+fvI7D8CIT2Hh6kbfqQMb835zc4a4T9/UAjbI/xSRWea+u6Kcbhn WtHQ==
X-Received by 10.50.16.102 with SMTP id f6mr409958igd.41.1376316289675; Mon, 12 Aug 2013 07:04:49 -0700 (PDT)
Date Mon, 12 Aug 2013 10:04:46 -0400
From Devyn Collier Johnson <devyncjohnson@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8
MIME-Version 1.0
To Python Mailing List <python-list@python.org>
Subject Re: Am I not seeing the Error?
References <5206F4AB.8050204@Gmail.com> <mailman.452.1376188442.1251.python-list@python.org> <roy-4A9C13.22431010082013@news.panix.com> <CAPTjJmoA+r3ABByjgMNC-23H0tB95r6S+d04T-KF-3xgbCNSOQ@mail.gmail.com> <5208D625.2000103@Gmail.com> <CAKJDb-P-TEqmGV45dbayaLdqh2nXE_FyLbd4dk7CPpcTsFWciQ@mail.gmail.com>
In-Reply-To <CAKJDb-P-TEqmGV45dbayaLdqh2nXE_FyLbd4dk7CPpcTsFWciQ@mail.gmail.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
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.500.1376316293.1251.python-list@python.org> (permalink)
Lines 55
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1376316293 news.xs4all.nl 15954 [2001:888:2000:d::a6]:37401
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52416

Show key headers only | View raw


On 08/12/2013 09:20 AM, Zachary Ware wrote:
> On Mon, Aug 12, 2013 at 7:33 AM, Devyn Collier Johnson
> <devyncjohnson@gmail.com> wrote:
>> On 08/10/2013 10:47 PM, Chris Angelico wrote:
>>> On Sun, Aug 11, 2013 at 3:43 AM, Roy Smith <roy@panix.com> wrote:
>>>> In article <mailman.452.1376188442.1251.python-list@python.org>,
>>>>    Chris Angelico <rosuav@gmail.com> 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 for the code being one line, my style of coding is very different from
>> others. I try to keep similar or related tasks on one line. Programming like
>> that is called trolling. A programmer that uses trolling is called a troll.
>> A troll can also refer to such a line of code itself. My scripts contain a
>> lot of trolls. It is easier for me to read trolls than "typical" coding
>> styles.
> Obviously not, since you can't find the syntax error.  If you replace
> each semicolon in that line with a newline, the syntax error will be
> immediately obvious.  I'll even give you a hint: it's on the third
> line.
>
Zachary, are you, Ned, and Terry trying to say the syntax should be

job = multiprocessing.Process(func1(), func2())

not

job = multiprocessing.Process(func1(); func2())

DCJ

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Am I not seeing the Error? Chris Angelico <rosuav@gmail.com> - 2013-08-11 03:33 +0100
  Re: Am I not seeing the Error? Roy Smith <roy@panix.com> - 2013-08-10 22:43 -0400
    Re: Am I not seeing the Error? Chris Angelico <rosuav@gmail.com> - 2013-08-11 03:47 +0100
    Re: Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-12 08:33 -0400
    Re: Am I not seeing the Error? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-08-12 08:20 -0500
    Re: Am I not seeing the Error? Ned Batchelder <ned@nedbatchelder.com> - 2013-08-12 10:01 -0400
    Re: Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-12 10:04 -0400
      Re: Am I not seeing the Error? Roy Smith <roy@panix.com> - 2013-08-12 11:47 -0400
        Re: Am I not seeing the Error? Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-12 12:56 -0400
        Re: Am I not seeing the Error? Chris Angelico <rosuav@gmail.com> - 2013-08-12 18:19 +0100
        Re: Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-12 16:16 -0400
        Re: Am I not seeing the Error? Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-12 16:34 -0400
        Re: Am I not seeing the Error? Ned Batchelder <ned@nedbatchelder.com> - 2013-08-12 16:35 -0400
        Re: Am I not seeing the Error? Joshua Landau <joshua@landau.ws> - 2013-08-13 09:19 +0100
          Re: Am I not seeing the Error? Steven D'Aprano <steve@pearwood.info> - 2013-08-13 08:50 +0000
            Re: Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-13 06:31 -0400
            Re: Am I not seeing the Error? Robert Kern <robert.kern@gmail.com> - 2013-08-13 13:11 +0100
            Re: Am I not seeing the Error? Terry Reedy <tjreedy@udel.edu> - 2013-08-13 12:12 -0400
            Re: Am I not seeing the Error? Michael Torrie <torriem@gmail.com> - 2013-08-13 19:55 -0600
          Re: Am I not seeing the Error? Grant Edwards <invalid@invalid.invalid> - 2013-08-13 13:55 +0000
    Re: Am I not seeing the Error? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-08-12 10:37 -0500
    Re: Am I not seeing the Error? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-08-12 10:47 -0500
  Re: Am I not seeing the Error? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-11 08:28 +0000
    Re: Am I not seeing the Error? Joshua Landau <joshua@landau.ws> - 2013-08-11 11:18 +0100
    Re: Am I not seeing the Error? Roy Smith <roy@panix.com> - 2013-08-11 09:27 -0400

csiph-web