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

Function len

crates/vm/src/stdlib/builtins.rs:814–816  ·  view source on GitHub ↗
(obj: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

812
813 #[pyfunction]
814 fn len(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<usize> {
815 obj.length(vm)
816 }
817
818 #[pyfunction]
819 fn locals(vm: &VirtualMachine) -> PyResult<ArgMapping> {

Callers 15

fetch_handlerFunction · 0.85
pystone.pyFile · 0.85
readMethod · 0.85
readlineMethod · 0.85
_append_untaggedMethod · 0.85
_commandMethod · 0.85
print_logMethod · 0.85
__exit__Method · 0.85
encodeMethod · 0.85
_partial_prepare_mergerFunction · 0.85
_partial_newFunction · 0.85
__call__Method · 0.85

Calls 1

lengthMethod · 0.45

Tested by 15

register_optionflagFunction · 0.68
_ellipsis_matchFunction · 0.68
_strip_exception_detailsFunction · 0.68
_module_relative_pathFunction · 0.68
__repr__Method · 0.68
parseMethod · 0.68
_parse_exampleMethod · 0.68
_min_indentMethod · 0.68
_check_prompt_blankMethod · 0.68
_find_linenoMethod · 0.68
_n_itemsFunction · 0.68
DocTestSuiteFunction · 0.68