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

2007-12-08 Thread Dick Moores
At 09:11 PM 12/6/2007, 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 a

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

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 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 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 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 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 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