Python Programming on Win32
Andy Robinson
andy at reportlab.com
Wed Apr 4 08:34:57 EDT 2001
On Mon, 02 Apr 2001 14:51:12 -0600, kentj <kentj at tadboise.com> wrote:
>I am trying to learn Python. Have I done something wrong with the
>demodata1.py file?
>
>File "c:\python\pythonwin\pywin\framework\scriptutils.py", line 394, in
>ImportFile
> exec codeObj in __main__.__dict__
> File "<auto import>", line 1, in ?
> File "C:\Python\doubletalk\demodata1.py", line 9, in ?
> from doubletalk.transac import *
> File "c:\python\doubletalk\transac.py", line 23, in ?
> from dates import *
> File "c:\python\doubletalk\dates.py", line 53, in ?
> LATE = mktime(2038,1,15,0,0,0,0,0,0) #nearly the last day in Unix
>time system
>TypeError: mktime requires exactly 1 argument; 9 given
>>>> bs = demodata1.getdata()
>Traceback (innermost last):
> File "<interactive input>", line 1, in ?
>NameError: There is no variable named 'demodata1'
>>>>
>
No, I goofed when I wrote it - I was being a GMT snob.
That is the largest whole date that works
in London, but overflows in some parts of the globe.
Change the code to mktime(2038,1,14,0,0,0,0,0,0)
- one day earlier - and you should be fine. If that
still fails, knock off a year to be safe and tell me what
planet you are on :-)
Andy Robinson
More information about the Python-list
mailing list