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

Method py_new

crates/vm/src/exceptions.rs:749–751  ·  view source on GitHub ↗
(_cls: &Py<PyType>, _args: FuncArgs, _vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

747 }
748
749 fn py_new(_cls: &Py<PyType>, _args: FuncArgs, _vm: &VirtualMachine) -> PyResult<Self> {
750 unimplemented!("use slot_new")
751 }
752}
753
754impl Initializer for PyBaseException {

Callers

nothing calls this directly

Calls 8

newFunction · 0.85
PyExceptionClass · 0.85
to_vecMethod · 0.80
SomeClass · 0.50
lenMethod · 0.45
containsMethod · 0.45
cloneMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected