Determines if `self` is an instance of `cls`, either directly, indirectly or virtually via the __instancecheck__ magic method.
(&self, cls: &Self, vm: &VirtualMachine)
| 616 | /// Determines if `self` is an instance of `cls`, either directly, indirectly or virtually via |
| 617 | /// the __instancecheck__ magic method. |
| 618 | pub fn is_instance(&self, cls: &Self, vm: &VirtualMachine) -> PyResult<bool> { |
| 619 | self.object_recursive_isinstance(cls, vm) |
| 620 | } |
| 621 | |
| 622 | // This is object_recursive_isinstance from CPython's Objects/abstract.c |
| 623 | fn object_recursive_isinstance(&self, cls: &Self, vm: &VirtualMachine) -> PyResult<bool> { |
no test coverage detected