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

Function signal

crates/vm/src/stdlib/_signal.rs:194–200  ·  view source on GitHub ↗
(
        _signalnum: i32,
        _handler: PyObjectRef,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

192 #[cfg(not(any(unix, windows)))]
193 #[pyfunction]
194 pub fn signal(
195 _signalnum: i32,
196 _handler: PyObjectRef,
197 vm: &VirtualMachine,
198 ) -> PyResult<Option<PyObjectRef>> {
199 Err(vm.new_not_implemented_error("signal is not implemented on this platform"))
200 }
201
202 #[cfg(any(unix, windows))]
203 #[pyfunction]

Callers 5

init_signal_handlersFunction · 0.70
faulthandler_fatal_errorFunction · 0.50
exec_innerFunction · 0.50

Calls 12

assert_in_rangeFunction · 0.85
check_signalsFunction · 0.85
is_main_threadMethod · 0.80
okMethod · 0.80
is_callableMethod · 0.80
new_os_errorMethod · 0.80
borrow_mutMethod · 0.80
ErrClass · 0.50
containsMethod · 0.45
to_ownedMethod · 0.45
get_or_initMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected