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

Method real_is_instance

crates/vm/src/protocol/object.rs:578–580  ·  view source on GitHub ↗

_PyObject_RealIsInstance

(&self, cls: &Self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

576
577 // _PyObject_RealIsInstance
578 pub(crate) fn real_is_instance(&self, cls: &Self, vm: &VirtualMachine) -> PyResult<bool> {
579 self.object_isinstance(cls, vm)
580 }
581
582 /// Real isinstance check without going through __instancecheck__
583 /// This is equivalent to CPython's _PyObject_RealIsInstance/object_isinstance

Callers 1

__instancecheck__Method · 0.80

Calls 1

object_isinstanceMethod · 0.80

Tested by

no test coverage detected