[issue16924] try: except: ordering error

2013-01-11 Thread Georg Brandl
Georg Brandl added the comment: If I understand your issue correctly, you are expecting all three exception handlers to be called in innermost-to-outermost order. However, exceptions are not reraised automatically after "except" blocks; you can insert a bare "raise" statement in the handler to

[issue16924] try: except: ordering error

2013-01-10 Thread R. David Murray
R. David Murray added the comment: Print b happens when the interpreter is processing the loop condition for loop c. print c happens when it is processing the body of the loop (ie: is inside the try/except in the body of the loop). Presumably if you set your keyboard autorepeat interval shor

[issue16924] try: except: ordering error

2013-01-10 Thread Justin Eittreim
New submission from Justin Eittreim: When running multiple nested loops (to emulate the circumstances of a program running multiple different modules at once,) each with their own try: except: block (in this case for KeyboardInterrupt,) the order of operations seems to fall out of place. As yo