Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread spawgi
Thanks Jerry! By the way, I know I can change the way the loops works and bypass this issue :) I just wanted to mention this behavior which I thought interesting and present some corner case (I have worked extensively in testing). And I agree, probably I should not have used color. Bad on my part.

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread bob gailer
On 5/3/2012 9:57 AM, spa...@gmail.com wrote: Hello all, I have encountered the following scenario. Here is the code - on IDLE on Windows XP. *>>> while True:* Please do not use color. Post plain text. That is very hard for me to read and there is no need for color. -- Bob Gailer 919-636-4239

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Gergely Lőrincz
Thanks Andre, apologies for hijacking the thread! On 3 May 2012 18:05, Andre' Walker-Loud wrote: > Hi Greg, > > > I'm new to python, is schooling a python-developer thing? Whether I ask > for help at forums, IRC or here, someone schools me. Should I stick with > Java? > > No, the python mailing

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Andre' Walker-Loud
Hi Greg, > I'm new to python, is schooling a python-developer thing? Whether I ask for > help at forums, IRC or here, someone schools me. Should I stick with Java? No, the python mailing list is for the most part, very friendly and helpful (in my experience). Mark's message that you not hijac

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Gergely Lőrincz
I'm new to python, is schooling a python-developer thing? Whether I ask for help at forums, IRC or here, someone schools me. Should I stick with Java? On 3 May 2012 17:44, Gergely Lőrincz wrote: > I say old bean, did not get an answer and wasn't sure if it went through. > Sorry me for asking hel

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Gergely Lőrincz
I say old bean, did not get an answer and wasn't sure if it went through. Sorry me for asking help with python in a python mailing list! On 3 May 2012 17:30, Mark Lawrence wrote: > On 03/05/2012 16:52, Gergely Lőrincz wrote: > >> Dear folks, >> >> I've been struggling to set up python on snow le

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Mark Lawrence
On 03/05/2012 16:52, Gergely Lőrincz wrote: Dear folks, I've been struggling to set up python on snow leopard, mac os x. Stupidly I downloaded and installed python 3.2 and since then the 'python' command in the terminal yields 'no command found'. In addition when opening the terminal I get this

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Gergely Lőrincz
Dear folks, I've been struggling to set up python on snow leopard, mac os x. Stupidly I downloaded and installed python 3.2 and since then the 'python' command in the terminal yields 'no command found'. In addition when opening the terminal I get this error message on the top of the window: http:/

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Simon Yan
On Thu, May 3, 2012 at 9:57 PM, wrote: > Hello all, > > I have encountered the following scenario. > Here is the code - on IDLE on Windows XP. > > *>>> while True: > try: > number = raw_input("enter number - ") > print number * number > except ValueError: > print "

Re: [Tutor] How to exit this loop in the interpreter

2012-05-03 Thread Jerry Hill
On Thu, May 3, 2012 at 9:57 AM, wrote: > Hello all, > > I have encountered the following scenario. > Here is the code - on IDLE on Windows XP. > while True: >     try: >         number = raw_input("enter number - ") >         print number * number >     except ValueError: >         print "in

[Tutor] How to exit this loop in the interpreter

2012-05-03 Thread spawgi
Hello all, I have encountered the following scenario. Here is the code - on IDLE on Windows XP. *>>> while True: try: number = raw_input("enter number - ") print number * number except ValueError: print "invalid number" except: print "unspecified except