John Machin <[EMAIL PROTECTED]> writes: > On Jun 18, 12:51 am, geoffbache <[EMAIL PROTECTED]> wrote: > [snip] > > Is this a bug? I couldn't find any code, but I imagine something like > > try: > > import site > > except: > > sys.stderr.write("import site failed; use -v for traceback\n") > > > > which should surely allow a KeyboardInterrupt exception through? > > Surely?? A bare "except" catches *all* remaining uncaught exceptions.
I parsed that "should" as "this should be changed". > Allowing a KeyboardInterrupt exception through would require: > except KeyboardInterrupt: > pass Actually, to allow it through would require re-raising it: except KeyboardInterrupt: raise Yes, I think that's what Geoff is saying "should" be done :-) -- \ "When I was born I was so surprised I couldn't talk for a year | `\ and a half." -- Gracie Allen | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list