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

Function isinstance

crates/vm/src/stdlib/builtins.rs:755–757  ·  view source on GitHub ↗
(obj: PyObjectRef, typ: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

753
754 #[pyfunction]
755 fn isinstance(obj: PyObjectRef, typ: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {
756 obj.is_instance(&typ, vm)
757 }
758
759 #[pyfunction]
760 fn issubclass(subclass: PyObjectRef, typ: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {

Callers 15

_CRAM_MD5_AUTHMethod · 0.85
_append_untaggedMethod · 0.85
_commandMethod · 0.85
encodeMethod · 0.85
Time2InternaldateFunction · 0.85
_partial_newFunction · 0.85
__setstate__Method · 0.85
_unwrap_partialFunction · 0.85
_unwrap_partialmethodFunction · 0.85
lru_cacheFunction · 0.85
is_relatedFunction · 0.85
_is_valid_dispatch_typeFunction · 0.85

Calls 1

is_instanceMethod · 0.80

Tested by 15

_normalize_moduleFunction · 0.68
__init__Method · 0.68
__lt__Method · 0.68
get_examplesMethod · 0.68
_from_moduleMethod · 0.68
_findMethod · 0.68
_get_testMethod · 0.68
_find_linenoMethod · 0.68
script_from_examplesFunction · 0.68
test_errorhandleMethod · 0.68
test_errorhandleMethod · 0.68
test_decode_invalidMethod · 0.68