MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / func

Method func

tools/python-3.11.9-amd64/Lib/operator.py:248–251  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

246 self._attrs = (attr,)
247 names = attr.split('.')
248 def func(obj):
249 for name in names:
250 obj = getattr(obj, name)
251 return obj
252 self._call = func
253 else:
254 self._attrs = (attr,) + attrs

Callers 4

__call__Method · 0.45
_methodMethod · 0.45
__get__Method · 0.45
__call__Method · 0.45

Calls 2

tupleClass · 0.85
getterFunction · 0.50

Tested by

no test coverage detected