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

Method call_get_descriptor

crates/vm/src/vm/vm_object.rs:120–123  ·  view source on GitHub ↗
(&self, descr: &PyObject, obj: PyObjectRef)

Source from the content-addressed store, hash-verified

118 }
119
120 pub fn call_get_descriptor(&self, descr: &PyObject, obj: PyObjectRef) -> Option<PyResult> {
121 let cls = obj.class().to_owned().into();
122 self.call_get_descriptor_specific(descr, Some(obj), Some(cls))
123 }
124
125 pub fn call_if_get_descriptor(&self, attr: &PyObject, obj: PyObjectRef) -> PyResult {
126 self.call_get_descriptor(attr, obj)

Callers 2

subtype_get_dictFunction · 0.80

Calls 4

SomeClass · 0.50
to_ownedMethod · 0.45
classMethod · 0.45

Tested by

no test coverage detected