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

Function _getattribute

Lib/pickle.py:331–334  ·  view source on GitHub ↗
(obj, dotted_path)

Source from the content-addressed store, hash-verified

329# Tools used for pickling.
330
331def _getattribute(obj, dotted_path):
332 for subpath in dotted_path:
333 obj = getattr(obj, subpath)
334 return obj
335
336def whichmodule(obj, name):
337 """Find the module an object belong to."""

Callers 2

whichmoduleFunction · 0.85
find_classMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…