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


Groups > comp.lang.python > #42425

Re: Help with python code!

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 2013-04-01 09:04 +1100
Subject Re: Help with python code!
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4035.1364767957.2939.python-list@python.org> (permalink)

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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