Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __dir__
Method
__dir__
crates/vm/src/builtins/object.rs:421–423 ·
view source on GitHub ↗
(obj: PyObjectRef, vm: &VirtualMachine)
Source
from the content-addressed store, hash-verified
419
420
#[pymethod]
421
pub fn __dir__(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyList> {
422
obj.dir(vm)
423
}
424
425
#[pymethod]
426
fn __format__(
Callers
nothing calls this directly
Calls
1
dir
Method · 0.45
Tested by
no test coverage detected