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

Method py_new

crates/vm/src/stdlib/_typing.rs:76–78  ·  view source on GitHub ↗
(_cls: &Py<PyType>, _args: Self::Args, _vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

74 }
75
76 fn py_new(_cls: &Py<PyType>, _args: Self::Args, _vm: &VirtualMachine) -> PyResult<Self> {
77 unreachable!("NoDefault is a singleton, use slot_new")
78 }
79 }
80
81 impl Representable for NoDefault {

Callers

nothing calls this directly

Calls 11

contains_keyMethod · 0.80
ok_or_elseMethod · 0.80
current_frameMethod · 0.80
okMethod · 0.80
ErrClass · 0.50
keysMethod · 0.45
lenMethod · 0.45
is_emptyMethod · 0.45
cloneMethod · 0.45
getMethod · 0.45
get_itemMethod · 0.45

Tested by

no test coverage detected