Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'operator': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'subject:code': 0.07; 'editor.': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Help': 0.11; 'brackets': 0.16; 'minus': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sadly': 0.16; 'subject:python': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'url:moin': 0.24; "i've": 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; "doesn't": 0.30; 'code': 0.31; 'url:wiki': 0.31; 'correctly.': 0.31; 'probably': 0.32; 'supposed': 0.32; 'open': 0.33; 'url:python': 0.33; 'problem': 0.35; 'subject:with': 0.35; 'problem.': 0.35; 'there': 0.35; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; "you're": 0.61; 'charset:windows-1252': 0.65; 'between': 0.67; 'close': 0.67; '(sue': 0.84; 'sue': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Help with python code! Date: Sun, 31 Mar 2013 23:02:05 +0100 References: <37f23623-8bf5-421a-ab6a-34ff622c69f1@googlegroups.com> <2912c674-e30b-4339-9344-1f460cb96b23@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-92-18-43-197.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: X-Antivirus: avast! (VPS 130331-0, 31/03/2013), Outbound message X-Antivirus-Status: Clean 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364767305 news.xs4all.nl 6859 [2001:888:2000:d::a6]:43791 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42422 On 31/03/2013 22:21, Chris Angelico wrote: >> sue = 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 = (sue ­ 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 code into the Eclipse/Pydev editor. That sadly doesn't fix the problem with the call to mktime, 12 open round brackets to 14 close if I've counted correctly. -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence