Re: Looking for a wxPython GUI builder
Dick Moores wrote: > And which ones do people > actually use? Commercial or Freeware. I have tried SPE/wxGlade/pycard and a few others and still use xrced, it does basically what I need, it does the grunt work of fitting together the windows and sizers so I don't put a sizer where there should be a window etc. So I find xrced quite satisfactory, it seems sometimes being unambitious is the best ambition... Lee -- http://mail.python.org/mailman/listinfo/python-list
Time travel
I'm seeing an anomaly in the python time function on March 9, 2008 (the "spring foward" time): >>> time.mktime((2008, 3, 9, 2, 59, 59, 0, 0, -1)) 1205049599.0 >>> time.mktime((2008, 3, 9, 3, 0, 0, 0, 0, -1)) 1205046000.0 Does anyone have an idea as to what might cause a 4000 seconds backwards jump on March 9th of last year? I would have expected 3600 seconds. Thanks, Lee P.S. A full program demonstrating the question: #!/usr/bin/env python import time, datetime d1 = datetime.datetime(2008, 3, 9, 2, 59, 0).timetuple() #!/usr/bin/env python import time, datetime d1 = datetime.datetime(2008, 3, 9, 2, 59, 0).timetuple() d2 = datetime.datetime(2008, 3, 9, 3, 0, 0).timetuple() t1 = time.mktime(d1) t2 = time.mktime(d2) print t1, t2 -- http://mail.python.org/mailman/listinfo/python-list
Re: Time travel
And I can't do arithmetic, it is actually about 3600--never mind! On Nov 17, 10:37 am, Lee Merrill wrote: > I'm seeing an anomaly in the python time function on March 9, 2008 > (the "spring foward" time): > > >>> time.mktime((2008, 3, 9, 2, 59, 59, 0, 0, -1)) > 1205049599.0 > >>> time.mktime((2008, 3, 9, 3, 0, 0, 0, 0, -1)) > > 1205046000.0 > > Does anyone have an idea as to what might cause a 4000 seconds > backwards jump on March 9th of last year? I would have expected 3600 > seconds. > > Thanks, > Lee > > P.S. A full program demonstrating the question: > > #!/usr/bin/env python > > import time, datetime > > d1 = datetime.datetime(2008, 3, 9, 2, 59, 0).timetuple() > #!/usr/bin/env python > > import time, datetime > > d1 = datetime.datetime(2008, 3, 9, 2, 59, 0).timetuple() > d2 = datetime.datetime(2008, 3, 9, 3, 0, 0).timetuple() > t1 = time.mktime(d1) > t2 = time.mktime(d2) > > print t1, t2 -- http://mail.python.org/mailman/listinfo/python-list