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


Groups > comp.lang.python > #32916

Re: Invalid syntax

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <michael.weylandt@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'line:': 0.07; 'correct,': 0.09; 'cc:addr:python-list': 0.10; 'guys,': 0.16; 'identifiable': 0.16; 'syntax.': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'working.': 0.17; 'code.': 0.20; 'cheers,': 0.23; 'cc:2**0': 0.23; 'idea': 0.24; 'non': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'error': 0.30; 'code': 0.31; 'traceback': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'nov': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'michael': 0.36; 'keeps': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'where': 0.40; 'header:Received:5': 0.40; 'end': 0.40; 'link': 0.60; 'stuck': 0.65
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=OL16v7h1R7kdsIBIvTDiI3em/KhViMthkTZHAHbYj2E=; b=EgJz8vhveReVU29V44XsSjsHUEth7nJzVp+uaFmbpYrUpZZpvKszbZlKYEM3OZmLl4 cqOD5Eb3r2OhikrTOfcbXXUWUbkHQnEtV+OvKxvLrvniNOLPQvSavQfMUHaZQo1q6a/q Ruy55EGRjmQ4BXJSoDtkZ/FZVkgMiQN+qfMhlNQQGyb6YyYfDJ0Xm6OXC47OtZtEtfYC LeqIFeaJoES/+LwLQgZzZNY+4YVSptqQTq6IywRr//j/vwZ3sfbrJGKr9H7p6yRG0loS lZPE6IpEO0JwVq9TxqfNF+9V4zLnksOJWWOEApMhjFqlLA6ZU0XIFI00tWDl6X4lGbVD Uklg==
MIME-Version 1.0
In-Reply-To <CAHRZm1tsR-Uu4-18EZ-kgsDY7FvxYyMB1aMk-=xTm_m4ikqEFQ@mail.gmail.com>
References <CAHRZm1tsR-Uu4-18EZ-kgsDY7FvxYyMB1aMk-=xTm_m4ikqEFQ@mail.gmail.com>
From "R. Michael Weylandt" <michael.weylandt@gmail.com>
Date Wed, 7 Nov 2012 23:22:44 +0000
Subject Re: Invalid syntax
To Smaran Harihar <smaran.harihar@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list <python-list@python.org>
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.3405.1352330586.27098.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1352330586 news.xs4all.nl 6921 [2001:888:2000:d::a6]:43792
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:32916

Show key headers only | View raw


On Wed, Nov 7, 2012 at 11:17 PM, Smaran Harihar
<smaran.harihar@gmail.com> wrote:
> Hi guys,
>
> I am stuck in one of those non identifiable error location in the code. The
> code keeps giving invalid syntax. This is my code.
>
> I am using the same code for another code and not sure why this is not
> working. This is the traceback that I am getting.
>
> Any idea where am I going wrong?

If the dpaste link is correct, you're missing a close-parenthesis at
the end of the w.record line:

w.record(collection[i][0], MAT[0], TSD[0], AnnTMin[0], ANNPREC[0],
float(collection[i][2]), float(collection[i][1]) ## <<--- Hereabouts

Cheers,
Michael

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


Thread

Re: Invalid syntax "R. Michael Weylandt" <michael.weylandt@gmail.com> - 2012-11-07 23:22 +0000

csiph-web