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

Method new_list

crates/vm/src/vm/context.rs:583–585  ·  view source on GitHub ↗
(&self, elements: Vec<PyObjectRef>)

Source from the content-addressed store, hash-verified

581
582 #[inline(always)]
583 pub fn new_list(&self, elements: Vec<PyObjectRef>) -> PyListRef {
584 PyList::from(elements).into_ref(self)
585 }
586
587 #[inline(always)]
588 pub fn new_dict(&self) -> PyDictRef {

Callers 15

to_pyobjectMethod · 0.80
js_to_pyFunction · 0.80
copy_groupingFunction · 0.80
get_ciphersMethod · 0.80
get_unverified_chainMethod · 0.80
get_verified_chainMethod · 0.80
shared_ciphersMethod · 0.80
parse_ancillary_dataMethod · 0.80
gethostbyaddrFunction · 0.80
gethostbyname_exFunction · 0.80
selectFunction · 0.80
pollMethod · 0.80

Calls 1

into_refMethod · 0.45

Tested by

no test coverage detected