MCPcopy Index your code
hub / github.com/python/cpython / _check_instance

Function _check_instance

Lib/inspect.py:1701–1707  ·  view source on GitHub ↗
(obj, attr)

Source from the content-addressed store, hash-verified

1699
1700
1701def _check_instance(obj, attr):
1702 instance_dict = {}
1703 try:
1704 instance_dict = object.__getattribute__(obj, "__dict__")
1705 except AttributeError:
1706 pass
1707 return dict.get(instance_dict, attr, _sentinel)
1708
1709
1710def _check_class(klass, attr):

Callers 1

getattr_staticFunction · 0.85

Calls 2

__getattribute__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…