Re: [Tutor] Python N00bi - Tough Cookie

2007-12-07 Thread Kent Johnson
Guess?!? wrote: > Hello All, > > I want trying to write a program that searches all the files ( > recursively) under a given directory in the filesystem > There are following requirments > 1> Search for a pattern in all files in a directory > 2> Outputing the result with a unique format ( (626)

Re: [Tutor] Still Can't Find Timed While Loops

2007-12-07 Thread bob gailer
earlylight publishing wrote: > Hello all, > > I now have my bit of code in while loop form and it works! It's great > but not exactly what I wanted to do. I've been googling my heart out > and I find lots of info on while loops and lots of info on timers that > will execute an action AFTER a

[Tutor] Python N00bi - Tough Cookie

2007-12-07 Thread Guess?!?
Hello All, I want trying to write a program that searches all the files (recursively) under a given directory in the filesystem for phone numbers in the form of (626) 674-5901 and and then outputting all phone numbers found in a unique format 626-674 (If several numbers have the same office co

Re: [Tutor] Still Can't Find Timed While Loops

2007-12-07 Thread bob gailer
bhaaluu wrote: > On Dec 7, 2007 10:41 AM, bob gailer <[EMAIL PROTECTED]> wrote: > >> earlylight publishing wrote: >> >>> Hello all, >>> >>> I now have my bit of code in while loop form and it works! It's great >>> but not exactly what I wanted to do. I've been googling my heart out >>> an

Re: [Tutor] Still Can't Find Timed While Loops

2007-12-07 Thread Ricardo Aráoz
earlylight publishing wrote: > Hello all, > > I now have my bit of code in while loop form and it works! It's great > but not exactly what I wanted to do. I've been googling my heart out > and I find lots of info on while loops and lots of info on timers that > will execute an action AFTER a gi

Re: [Tutor] Still Can't Find Timed While Loops

2007-12-07 Thread bhaaluu
On Dec 7, 2007 2:36 PM, Scottie Hotchkiss <[EMAIL PROTECTED]> wrote: > Disclaimer: I can't test this while I'm at work, but using > > "while 1:" > > instead of > > "while time.time() - start < 30.0" > > would be better. > > In the former case if you press enter after time has run out, it won't > pr

Re: [Tutor] Still Can't Find Timed While Loops

2007-12-07 Thread Scottie Hotchkiss
Disclaimer: I can't test this while I'm at work, but using "while 1:" instead of "while time.time() - start < 30.0" would be better. In the former case if you press enter after time has run out, it won't print the time, in the latter you could potentially make a correct answer after time has

Re: [Tutor] Still Can't Find Timed While Loops

2007-12-07 Thread bhaaluu
On Dec 7, 2007 10:41 AM, bob gailer <[EMAIL PROTECTED]> wrote: > earlylight publishing wrote: > > Hello all, > > > > I now have my bit of code in while loop form and it works! It's great > > but not exactly what I wanted to do. I've been googling my heart out > > and I find lots of info on while

Re: [Tutor] Still Can't Find Timed While Loops

2007-12-07 Thread Luis N
I can't recall what your initial project was. I think it was a text adventure. I imagine that you have bigger ideas regarding timers then your current code suggests. Maybe you should investigate a time aware long-running process. Twisted Python is such a beast. While I can't recommend it's use as