Re: [Tutor] Logical error?

2014-05-02 Thread Steven D'Aprano
Hi Bob, and welcome! My responses interleaved with yours, below. On Fri, May 02, 2014 at 11:19:26PM +0100, Bob Williams wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm fairly new to coding and python. My system is linux (openSUSE > 13.1). Nice to know. And I see you h

[Tutor] Fwd: Logical error?

2014-05-02 Thread C Smith
The first loop tests for the last element of fullPath to have today's date. The second loop tests the first element in fullPath, if it is not today, you will end up running sys.exit() when you hit the else clause in second loop. On Fri, May 2, 2014 at 6:38 PM, C Smith wrote: > The first loop tes

[Tutor] Logical error?

2014-05-02 Thread Bob Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm fairly new to coding and python. My system is linux (openSUSE 13.1). I've written the following code to examine a log file, and extract strings from certain lines if two conditions are met, namely that the file has been modified today, and the