MCPcopy Index your code
hub / github.com/RustPython/RustPython / default_int_handler

Function default_int_handler

crates/vm/src/stdlib/_signal.rs:350–356  ·  view source on GitHub ↗
(
        _signum: PyObjectRef,
        _arg: PyObjectRef,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

348
349 #[pyfunction]
350 fn default_int_handler(
351 _signum: PyObjectRef,
352 _arg: PyObjectRef,
353 vm: &VirtualMachine,
354 ) -> PyResult {
355 Err(vm.new_exception_empty(vm.ctx.exceptions.keyboard_interrupt.to_owned()))
356 }
357
358 #[derive(FromArgs)]
359 struct SetWakeupFdArgs {

Callers

nothing calls this directly

Calls 3

new_exception_emptyMethod · 0.80
ErrClass · 0.50
to_ownedMethod · 0.45

Tested by

no test coverage detected