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

Method py_new

crates/vm/src/stdlib/itertools.rs:141–147  ·  view source on GitHub ↗
(
            _cls: &Py<PyType>,
            Self::Args { data, selectors }: Self::Args,
            _vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

139 type Args = CompressNewArgs;
140
141 fn py_new(
142 _cls: &Py<PyType>,
143 Self::Args { data, selectors }: Self::Args,
144 _vm: &VirtualMachine,
145 ) -> PyResult<Self> {
146 Ok(Self { data, selectors })
147 }
148 }
149
150 #[pyclass(with(IterNext, Iterable, Constructor), flags(BASETYPE))]

Callers

nothing calls this directly

Calls 15

newFunction · 0.85
into_optionMethod · 0.80
new_pyobjMethod · 0.80
try_indexMethod · 0.80
try_to_primitiveMethod · 0.80
try_to_valueMethod · 0.80
as_bigintMethod · 0.80
collectMethod · 0.80
ok_or_elseMethod · 0.80
ltMethod · 0.80
get_iterMethod · 0.80
checkFunction · 0.50

Tested by

no test coverage detected