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

Method get

crates/vm/src/builtins/descriptor.rs:201–206  ·  view source on GitHub ↗
(&self, obj: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

199
200impl PyMemberDef {
201 fn get(&self, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult {
202 match self.getter {
203 MemberGetter::Getter(getter) => (getter)(vm, obj),
204 MemberGetter::Offset(offset) => get_slot_from_object(obj, offset, self, vm),
205 }
206 }
207
208 fn set(
209 &self,

Callers 1

descr_getMethod · 0.45

Calls 1

get_slot_from_objectFunction · 0.85

Tested by

no test coverage detected