Re: [Tutor] Support for datetime module

2008-09-08 Thread Johan Geldenhuys
I managed to get a version of the datetime module in Python and used in my package. It works fine. Thanks Johan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hansen, Mike Sent: Tuesday, 9 September 2008 7:14 AM To: tutor@python.org Subject: Re: [Tutor]

Re: [Tutor] Support for datetime module

2008-09-08 Thread Hansen, Mike
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Kent Johnson > Sent: Saturday, September 06, 2008 7:08 AM > To: [EMAIL PROTECTED] > Cc: tutor@python.org > Subject: Re: [Tutor] Support for datetime module > > On Sat, Sep 6, 2008 at 2:42 AM, Joh

Re: [Tutor] Having Python check a program in win32.

2008-09-08 Thread Tim Golden
Rick Rune wrote: I'm looking to create a Python timed infinite loop (run foo, wait 1min, run foo) that will monitor if a particular program is running under Win32, and if it is not running to execute it. Can someone point me in the right direction to look? WMI. Example of sort here: http://

[Tutor] Having Python check a program in win32.

2008-09-08 Thread Rick Rune
I'm looking to create a Python timed infinite loop (run foo, wait 1min, run foo) that will monitor if a particular program is running under Win32, and if it is not running to execute it. Can someone point me in the right direction to look? Thanks, -Rick ___

Re: [Tutor] How to match strange characters

2008-09-08 Thread J. Van Brimmer
Thanks Paul, this looks like just what I need to reformat PRECESS's output into what I need. Thanks, Jerry Paul McGuire wrote: Instead of trying to match on the weird characters, in order to remove them, here is a pyparsing program that ignores those header lines and just extracts the interest

Re: [Tutor] How to match strange characters

2008-09-08 Thread Paul McGuire
Instead of trying to match on the weird characters, in order to remove them, here is a pyparsing program that ignores those header lines and just extracts the interesting data for each section. In a pyparsing program, you start by defining what patterns you want to look for. This is similar to th

Re: [Tutor] How to match strange characters

2008-09-08 Thread J. Van Brimmer
Kent Johnson wrote: On Mon, Sep 8, 2008 at 2:46 AM, J. Van Brimmer <[EMAIL PROTECTED]> wrote: I have a legacy program at work that outputs a text file with this header: ÉÍÍ» º Radio Source Precession Program º º by J

Re: [Tutor] Need help with using methods in a base class

2008-09-08 Thread Kent Johnson
On Mon, Sep 8, 2008 at 9:21 AM, Roy Khristopher Bayot <[EMAIL PROTECTED]> wrote: > Hi. It worked. :-) class LightsHandle(Parallel): > ... def __init__(self): > ... Parallel.__init__(self) > ... def __del__(self): > ... Parallel.__del__(self) These two methods

Re: [Tutor] Formating from hhmms to hh:mm:ss

2008-09-08 Thread Wayne Watson
This sure was tricky business, but it's working. Thanks to all who participated. Now if I can my "tutor" posting problem squared away! Kent Johnson wrote: On Sun, Sep 7, 2008 at 11:27 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: Well, maybe. Here's the file the change and result

Re: [Tutor] Need help with using methods in a base class

2008-09-08 Thread Roy Khristopher Bayot
Hi. It worked. >>> class LightsHandle(Parallel): ... def __init__(self): ... Parallel.__init__(self) ... def __del__(self): ... Parallel.__del__(self) ... def setLatch(self, x, y, z): ... self.setDataStrobe(x) ... print 'Data Strobe set.

Re: [Tutor] How to match strange characters

2008-09-08 Thread Kent Johnson
On Mon, Sep 8, 2008 at 2:46 AM, J. Van Brimmer <[EMAIL PROTECTED]> wrote: > I have a legacy program at work that outputs a text file with this header: > > ÉÍÍ» > º Radio Source Precession Program º > º by John B. Doe º > º

Re: [Tutor] Formating from hhmms to hh:mm:ss

2008-09-08 Thread Kent Johnson
On Sun, Sep 7, 2008 at 11:27 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: > Well, maybe. Here's the file the change and results: > > # Using datetime to do date-time math on a file date-time stamp and > # the creating the new stamp > from datetime import datetime, timedelta > > Traceback (most recen

[Tutor] Short Contract

2008-09-08 Thread Stephen Nelson-Smith
Hello, I'm looking for someone to help on a short contract to build a centralised blogging system. I want a planet-style aggregation of blogs, but with the ability to see and make comments on each individual blog, from the central planet page. Ideally, it would also have a little 'icon' mug-shot