Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42425
| 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 | <rosuav@gmail.com> |
| 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 | <kjabnm$38c$1@ger.gmane.org> |
| References | <37f23623-8bf5-421a-ab6a-34ff622c69f1@googlegroups.com> <mailman.4027.1364762359.2939.python-list@python.org> <2912c674-e30b-4339-9344-1f460cb96b23@googlegroups.com> <CAPTjJmqRkGaK=Z5jAS7-ZzJTQGCZsKmAF4b1hLd69z7K0YkpYA@mail.gmail.com> <kjabnm$38c$1@ger.gmane.org> |
| Date | Mon, 1 Apr 2013 09:04:48 +1100 |
| Subject | Re: Help with python code! |
| From | Chris Angelico <rosuav@gmail.com> |
| 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 <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.4035.1364767957.2939.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Mon, Apr 1, 2013 at 9:02 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote: > 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. Oh, of course, since sue comes from mktime. But yeah, definitely needs an operator there. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Help with python code! jojo <gerrymcgovern@gmail.com> - 2013-03-31 13:10 -0700
Re: Help with python code! Chris Angelico <rosuav@gmail.com> - 2013-04-01 07:39 +1100
Re: Help with python code! jojo <gerrymcgovern@gmail.com> - 2013-03-31 14:06 -0700
Re: Help with python code! Roy Smith <roy@panix.com> - 2013-03-31 17:13 -0400
Re: Help with python code! jojo <gerrymcgovern@gmail.com> - 2013-03-31 14:21 -0700
Re: Help with python code! Roy Smith <roy@panix.com> - 2013-03-31 17:27 -0400
Re: Help with python code! gerrymcgovern@gmail.com - 2013-03-31 14:32 -0700
Re: Help with python code! Alister <alister.ware@ntlworld.com> - 2013-04-01 17:54 +0000
Re: Help with python code! rurpy@yahoo.com - 2013-03-31 14:46 -0700
Re: Help with python code! Chris Angelico <rosuav@gmail.com> - 2013-04-01 08:35 +1100
Re: Help with python code! gerrymcgovern@gmail.com - 2013-03-31 14:41 -0700
Re: Help with python code! gerrymcgovern@gmail.com - 2013-03-31 14:41 -0700
Re: Help with python code! Jason Friedman <jsf80238@gmail.com> - 2013-04-02 21:59 -0600
Re: Help with python code! Chris Angelico <rosuav@gmail.com> - 2013-04-01 08:21 +1100
Re: Help with python code! gerrymcgovern@gmail.com - 2013-03-31 14:24 -0700
Re: Help with python code! gerrymcgovern@gmail.com - 2013-03-31 14:24 -0700
Re: Help with python code! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-31 23:02 +0100
Re: Help with python code! Chris Angelico <rosuav@gmail.com> - 2013-04-01 09:04 +1100
Re: Help with python code! jojo <gerrymcgovern@gmail.com> - 2013-03-31 14:06 -0700
Re: Help with python code! Roy Smith <roy@panix.com> - 2013-03-31 17:08 -0400
csiph-web