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

Function _getattribute

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

Source from the content-addressed store, hash-verified

313# Tools used for pickling.
314
315def _getattribute(obj, dotted_path):
316 for subpath in dotted_path:
317 obj = getattr(obj, subpath)
318 return obj
319
320def whichmodule(obj, name):
321 """Find the module an object belong to."""

Callers 2

whichmoduleFunction · 0.85
find_classMethod · 0.85

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected