Re: [Tutor] exception about "ctrl+c"

2012-01-09 Thread Christian Witts
On 2012/01/09 02:24 PM, daedae11 wrote: I want to catch the "ctrl+c" exception. My program is as following. But when I run my script and press "ctrl"+"c", the program output nothing. I don't know where did I go wrong. Please help me. Thank you! def safe_input(prompting): try: retur

Re: [Tutor] exception about "ctrl+c"

2012-01-09 Thread Joel Goldstick
On Mon, Jan 9, 2012 at 7:24 AM, daedae11 wrote: > I want to catch the "ctrl+c" exception. My program is as following. But when > I run my script and press "ctrl"+"c", the  program output nothing. I don't > know where did I go wrong. Please help me. Thank you! > > def safe_input(prompting): > t

[Tutor] exception about "ctrl+c"

2012-01-09 Thread daedae11
I want to catch the "ctrl+c" exception. My program is as following. But when I run my script and press "ctrl"+"c", the program output nothing. I don't know where did I go wrong. Please help me. Thank you! def safe_input(prompting): try: return raw_input(prompting); except Keyboa