Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'operator': 0.03; 'subject:code': 0.07; 'editor.': 0.09; 'lawrence': 0.09; 'oh,': 0.09; 'yeah,': 0.09; 'subject:Help': 0.11; 'brackets': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'minus': 0.16; 'sadly': 0.16; 'subject:python': 0.16; 'fix': 0.17; 'wrote:': 0.18; '>>>': 0.22; 'mon,': 0.24; "i've": 0.25; 'header :In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'correctly.': 0.31; 'there.': 0.32; 'probably': 0.32; 'supposed': 0.32; 'open': 0.33; 'problem': 0.35; 'subject:with': 0.35; 'received:209.85': 0.35; 'problem.': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'between': 0.67; 'close': 0.67; '(sue': 0.84; '9:02': 0.84; 'sue': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=+KEZpJyzTNzcZkUASrqwjq2YbLSKX1RWZyOdas/LwkU=; b=0ockhZ+K6td+1pM8uLH7Sl01vGucAWA+vYHPF4FSVhox+VNrr9KGOJnsTltwC7dyqo ucbcGJX38BKjRQHsvBfd1RR6RC6EBpLF1wh3JY5aKT44dpX2XD7hW0K7JUP3JuaOYP3/ +yVNCiXUBjT1Wr98HdwWSM3Kt28uFP3ltnxPJdD3WDA8rapHG/C9Q/PibIZcweN6Hi2T k6UmuixjLxYEdNY+IOgcBPhlZkHKYXtAe8/o8HEG4ifDiaMUPVmLsF7TzaSMPaJkaKoT K/OqzikIpxikLXgqk0vVDU3Q6oi17WOW6Ckj9PhKazwPh4Pauywe6uQFeiYS7fi6MmRI CNcA== MIME-Version: 1.0 X-Received: by 10.58.15.193 with SMTP id z1mr7586025vec.40.1364767488437; Sun, 31 Mar 2013 15:04:48 -0700 (PDT) In-Reply-To: References: <37f23623-8bf5-421a-ab6a-34ff622c69f1@googlegroups.com> <2912c674-e30b-4339-9344-1f460cb96b23@googlegroups.com> Date: Mon, 1 Apr 2013 09:04:48 +1100 Subject: Re: Help with python code! From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364767957 news.xs4all.nl 6922 [2001:888:2000:d::a6]:52686 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42425 On Mon, Apr 1, 2013 at 9:02 AM, Mark Lawrence wro= te: > On 31/03/2013 22:21, Chris Angelico wrote: >>> >>> sue =3D time.mktime( >>> (int(m.group(7)), int(months[m.group(2)]), int(m.group(3)), >>> int(m.group(4)), int(m.group(5)), int(m.group(6)), >>> int(days[m.group(1)]), 0, 0) >>> ) >>> expire_time =3D (sue =AD current_time)/60/60/24 >> >> >> Here's a likely problem. There's supposed to be an operator - probably >> a plus sign - between sue and current_time. >> > > There is actually a minus sign there which showed up when I pasted the co= de > into the Eclipse/Pydev editor. That sadly doesn't fix the problem with t= he > call to mktime, 12 open round brackets to 14 close if I've counted > correctly. Oh, of course, since sue comes from mktime. But yeah, definitely needs an operator there. ChrisA