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

Method __objclass__

crates/vm/src/builtins/getset.rs:137–140  ·  view source on GitHub ↗
(vm: &VirtualMachine, zelf: PyObjectRef)

Source from the content-addressed store, hash-verified

135
136 #[pymember]
137 fn __objclass__(vm: &VirtualMachine, zelf: PyObjectRef) -> PyResult {
138 let zelf: &Py<Self> = zelf.try_to_value(vm)?;
139 Ok(unsafe { zelf.class.borrow_static() }.to_owned().into())
140 }
141}
142
143impl Representable for PyGetSet {

Callers

nothing calls this directly

Calls 3

try_to_valueMethod · 0.80
borrow_staticMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected