During execution, a check for interrupts is made regularly. The exception inherits from BaseException so as to not be accidentally caught by code that catches Exception and thus prevent the interpreter from exiting. And on the machine where it failed, it turned out I had a hardware problem that prevented[...]