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

Function warn

crates/vm/src/warn.rs:301–309  ·  view source on GitHub ↗
(
    message: PyObjectRef,
    category: Option<PyTypeRef>,
    stack_level: isize,
    source: Option<PyObjectRef>,
    vm: &VirtualMachine,
)

Source from the content-addressed store, hash-verified

299}
300
301pub fn warn(
302 message: PyObjectRef,
303 category: Option<PyTypeRef>,
304 stack_level: isize,
305 source: Option<PyObjectRef>,
306 vm: &VirtualMachine,
307) -> PyResult<()> {
308 warn_with_skip(message, category, stack_level, source, None, vm)
309}
310
311/// do_warn: resolve context via setup_context, then call warn_explicit.
312pub fn warn_with_skip(

Callers 7

warn_on_strMethod · 0.70
try_path_or_fdMethod · 0.70
delMethod · 0.50
throwMethod · 0.50
py_newMethod · 0.50
set_optionsMethod · 0.50

Calls 1

warn_with_skipFunction · 0.85

Tested by

no test coverage detected