Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'syntax': 0.04; 'must,': 0.09; 'parsing': 0.09; 'cc:addr:python-list': 0.11; '(9,': 0.16; 'before.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'highlighted': 0.16; 'subject:OOP': 0.16; 'value;': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'cc:addr:python.org': 0.22; 'error': 0.23; "haven't": 0.24; 'cc:2**0': 0.24; 'shown': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'getting': 0.31; 'posting': 0.31; 'helpful.': 0.31; 'file': 0.32; 'there.': 0.32; 'fri,': 0.33; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'processed': 0.36; 'possible': 0.36; 'two': 0.37; 'sometimes': 0.38; 'sure': 0.39; 'most': 0.60; 'helps': 0.61; 'entire': 0.61; 'invalid': 0.68; 'line,': 0.68; 'jul': 0.74; 'discovered': 0.83; 'computerized': 0.84; 'why?': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=RTAhBpI5K576s/ft7ohoXiaPPsKXk8p2ZxZfcXE5Zik=; b=eafBhentg+MBo9EsDSIAn65VHRFWXndXe97qew/KB5TYQ2FpZSVpP/CoUVjVgpeeqh QuPBgeWt+DIVGLgsNHZV3aOhEdCrPqwRWDA4qwdAevP6ZTPD8XdsjFdBs/1qd1tLDMab 6aHnrERn+iFkSfEXby5SdU3dQvLIVnF6RI165GIwoGsK34oBX+sQmHZPQtnJzerc8zsl QEH6h5E8LwAY4edC3+d/u+yGirtKJ9Tpj8ngKkGQaspHt1ih433JTlJ9Rj1IpvDaOrue FXXaaHb7VJh4TXYt1GmwyXpiZvRvkVbt1puNR/CZ+BapGXhVMDiAxDOOr/TSG2dzRjJZ OCgA== MIME-Version: 1.0 X-Received: by 10.52.172.5 with SMTP id ay5mr1406681vdc.38.1404401707235; Thu, 03 Jul 2014 08:35:07 -0700 (PDT) In-Reply-To: References: <7020a5d8-96a9-4fa4-8e69-4c7593dedee3@googlegroups.com> Date: Fri, 4 Jul 2014 01:35:07 +1000 Subject: Re: OOP with MyTime From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1404401715 news.xs4all.nl 2964 [2001:888:2000:d::a6]:35095 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73906 On Fri, Jul 4, 2014 at 1:21 AM, wrote: > I keep getting an invalid syntax on the t1 = (9, 59, 59) line, not sure why? > > t1 = (9, 59, 59) Two points. Firstly, as I said before, posting the entire exception helps us enormously. Secondly, with most computerized parsers, the file is processed top-down, left-to-right, so it's possible for a syntax error to be discovered a bit after where it actually happens - but not before. So when you get parsing errors, check the immediately preceding line; sometimes it's there. Since you haven't shown us that line, we have no idea what's happening. Showing us the code below the highlighted error line is of no value; showing us the code before that line is helpful. Also: Please don't use Google Groups, or if you must, please clean up its messes. ChrisA