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

Method call_get_descriptor_specific

crates/vm/src/vm/vm_object.rs:110–118  ·  view source on GitHub ↗
(
        &self,
        descr: &PyObject,
        obj: Option<PyObjectRef>,
        cls: Option<PyObjectRef>,
    )

Source from the content-addressed store, hash-verified

108 }
109
110 pub fn call_get_descriptor_specific(
111 &self,
112 descr: &PyObject,
113 obj: Option<PyObjectRef>,
114 cls: Option<PyObjectRef>,
115 ) -> Option<PyResult> {
116 let descr_get = descr.class().slots.descr_get.load()?;
117 Some(descr_get(descr.to_owned(), obj, cls, self))
118 }
119
120 pub fn call_get_descriptor(&self, descr: &PyObject, obj: PyObjectRef) -> Option<PyResult> {
121 let cls = obj.class().to_owned().into();

Callers 5

execute_instructionMethod · 0.80
slot_newMethod · 0.80
getattroMethod · 0.80
call_get_descriptorMethod · 0.80
get_specialMethod · 0.80

Calls 4

SomeClass · 0.50
loadMethod · 0.45
classMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected