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

Method func

Lib/operator.py:256–259  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

254 self._attrs = (attr,)
255 names = attr.split('.')
256 def func(obj):
257 for name in names:
258 obj = getattr(obj, name)
259 return obj
260 self._call = func
261 else:
262 self._attrs = (attr,) + attrs

Callers 5

__call__Method · 0.45
_methodMethod · 0.45
__get__Method · 0.45
__call__Method · 0.45
import.pyFile · 0.45

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected