Re: how to finish a while loop...

2008-02-20 Thread Jeff Schwab
icarus wrote: > Opened up a regular console and executed it > from there. > And voilait works! Well, after this I'm going back to the old > trusty shell. +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Re: how to finish a while loop...

2008-02-20 Thread Martin Blume
"richie" schrieb > > > That code works. Maybe you fixed it while > > > you were mailing it =) > > > > This is weird mate. > > I'm using eclipse 3.2 with the pydev plugin. > > There it loops forever - from the eclipse console. > > Two hours of trying, changing the code...finally gave up. > > > >

Re: how to finish a while loop...

2008-02-20 Thread Bruno Desthuilliers
icarus a écrit : > Hi all, i'm new to python. Learning on my own how to ask a user to > finish a loop or not. > For some reason, it behaves as infinite loop although I changed its > condition. Please tell me what I'm doing wrong. Thanks in advance. Problem mostly solved, so I'll just comment a b

Re: how to finish a while loop...

2008-02-20 Thread Chris
On Feb 20, 3:42 am, richie <[EMAIL PROTECTED]> wrote: > On Feb 20, 9:35 am, icarus <[EMAIL PROTECTED]> wrote: > > > > > > To the original poster what environment are you running this in? > > > Linux. Xubuntu if that matters. > > > > When I put your program in notepad and run it fro

Re: how to finish a while loop...

2008-02-19 Thread Preston Landers
On Feb 19, 7:35 pm, icarus <[EMAIL PROTECTED]> wrote: > > But when I paste it into eclipse and run it > > eclipse's console, it doesn't work because answer seems to have a > > stray '\r' carriage return (CR) and therefore the comparison to 'no' > > fails. > > I get no 'compile' errors th

Re: how to finish a while loop...

2008-02-19 Thread rynt
Wouldn't hurt to send an email or message, along with the code, to Fabio Zdronzy, the maintainer of PyDev explaining what happened. He'll probably see this thread, but then again, maybe not. Ruben On Feb 19, 5:35 pm, icarus <[EMAIL PROTECTED]> wrote: > > To the original poster what environme

Re: how to finish a while loop...

2008-02-19 Thread richie
On Feb 20, 9:35 am, icarus <[EMAIL PROTECTED]> wrote: > > To the original poster what environment are you running this in? > > Linux. Xubuntu if that matters. > > > When I put your program in notepad and run it from the windows command > > prompt it works. > > yeah yeah

Re: how to finish a while loop...

2008-02-19 Thread icarus
> To the original poster what environment are you running this in? Linux. Xubuntu if that matters. > When I put your program in notepad and run it from the windows command > prompt it works. yeah yeah...same here. After I got the tip that it actually worked, I went int

Re: how to finish a while loop...

2008-02-19 Thread richie
On Feb 20, 9:21 am, icarus <[EMAIL PROTECTED]> wrote: > > That code works. Maybe you fixed it while you were mailing it =) > > > -- > > -- Guilherme H. Polo Goncalves > > This is weird mate. > I'm using eclipse 3.2 with the pydev plugin. There it loops forever - > from the eclipse console. > Two h

Re: how to finish a while loop...

2008-02-19 Thread Preston Landers
On Feb 19, 7:12 pm, richie <[EMAIL PROTECTED]> wrote: > On Feb 20, 9:00 am, icarus <[EMAIL PROTECTED]> wrote: > > > > > Hi all, i'm new to python. Learning on my own how to ask a user to > > finish a loop or not. > > For some reason, it behaves as infinite loop although I changed its > > condition

Re: how to finish a while loop...

2008-02-19 Thread icarus
> That code works. Maybe you fixed it while you were mailing it =) > > -- > -- Guilherme H. Polo Goncalves This is weird mate. I'm using eclipse 3.2 with the pydev plugin. There it loops forever - from the eclipse console. Two hours of trying, changing the code...finally gave up. Then I got you

Re: how to finish a while loop...

2008-02-19 Thread Paul Rubin
icarus <[EMAIL PROTECTED]> writes: > For some reason, it behaves as infinite loop although I changed its > condition. Please tell me what I'm doing wrong. Thanks in advance. It worked when I tried it: >>> ## working on region in file /usr/tmp/python-13922e2f... Please enter an integer: 8

Re: how to finish a while loop...

2008-02-19 Thread richie
On Feb 20, 9:00 am, icarus <[EMAIL PROTECTED]> wrote: > Hi all, i'm new to python. Learning on my own how to ask a user to > finish a loop or not. > For some reason, it behaves as infinite loop although I changed its > condition. Please tell me what I'm doing wrong. Thanks in advance. > > conditi

Re: how to finish a while loop...

2008-02-19 Thread Guilherme Polo
2008/2/19, icarus <[EMAIL PROTECTED]>: > Hi all, i'm new to python. Learning on my own how to ask a user to > finish a loop or not. > For some reason, it behaves as infinite loop although I changed its > condition. Please tell me what I'm doing wrong. Thanks in advance. > > > condition = True

how to finish a while loop...

2008-02-19 Thread icarus
Hi all, i'm new to python. Learning on my own how to ask a user to finish a loop or not. For some reason, it behaves as infinite loop although I changed its condition. Please tell me what I'm doing wrong. Thanks in advance. condition = True while ( condition ): try: in