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

Method py_new

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

Source from the content-addressed store, hash-verified

90 }
91
92 fn py_new(_cls: &Py<PyType>, _args: Self::Args, _vm: &VirtualMachine) -> PyResult<Self> {
93 // This is never called because we override slot_new
94 Ok(PyPlaceholderType)
95 }
96 }
97
98 #[pyclass(with(Constructor, Representable))]

Callers

nothing calls this directly

Calls 15

is_placeholderFunction · 0.85
count_placeholdersFunction · 0.85
newFunction · 0.85
ok_or_elseMethod · 0.80
is_callableMethod · 0.80
to_vecMethod · 0.80
new_dictMethod · 0.80
intern_strMethod · 0.80
ErrClass · 0.50
readMethod · 0.45
as_sliceMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected