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

Function dir

crates/vm/src/stdlib/builtins.rs:457–459  ·  view source on GitHub ↗
(obj: OptionalArg<PyObjectRef>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

455
456 #[pyfunction]
457 fn dir(obj: OptionalArg<PyObjectRef>, vm: &VirtualMachine) -> PyResult<PyList> {
458 vm.dir(obj.into_option())
459 }
460
461 #[pyfunction]
462 fn divmod(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers 15

_get_exports_listFunction · 0.85
attr_matchesMethod · 0.85
get_class_membersFunction · 0.85
_getmembersFunction · 0.85
classify_class_attrsFunction · 0.85
__dir__Method · 0.85
get_namesMethod · 0.85
__dir__Method · 0.85
no_type_checkFunction · 0.85
pickle.pyFile · 0.85
_complete_expressionMethod · 0.85

Calls 2

into_optionMethod · 0.80
dirMethod · 0.45

Tested by 15

__del__Method · 0.68
get_exceptionsFunction · 0.68
test_methodsMethod · 0.68
__new__Method · 0.68
checkModuleMethod · 0.68
test_optionsMethod · 0.68
test_propertiesMethod · 0.68
test_dirMethod · 0.68
test_allMethod · 0.68
test_name_cleanupMethod · 0.68
__init__Method · 0.68