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

Method __sizeof__

crates/vm/src/builtins/object.rs:551–553  ·  view source on GitHub ↗
(zelf: PyObjectRef)

Source from the content-addressed store, hash-verified

549
550 #[pymethod]
551 fn __sizeof__(zelf: PyObjectRef) -> usize {
552 zelf.class().slots.basicsize
553 }
554}
555
556pub fn object_get_dict(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyDictRef> {

Callers

nothing calls this directly

Calls 1

classMethod · 0.45

Tested by

no test coverage detected