MCPcopy Index your code
hub / github.com/hyperopt/hyperopt / getattr

Method getattr

hyperopt/pyll/base.py:107–114  ·  view source on GitHub ↗
(self, obj, attr, *args)

Source from the content-addressed store, hash-verified

105 )
106
107 def getattr(self, obj, attr, *args):
108 return self._new_apply(
109 "getattr",
110 [as_apply(obj), as_apply(attr)] + list(map(as_apply, args)),
111 {},
112 o_len=None,
113 pure=True,
114 )
115
116 def _define(self, f, o_len, pure):
117 name = f.__name__

Callers

nothing calls this directly

Calls 2

_new_applyMethod · 0.95
as_applyFunction · 0.85

Tested by

no test coverage detected