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

Method __get__

Lib/functools.py:395–398  ·  view source on GitHub ↗
(self, obj, objtype=None)

Source from the content-addressed store, hash-verified

393 return self.func(*pto_args, *args, **keywords)
394
395 def __get__(self, obj, objtype=None):
396 if obj is None:
397 return self
398 return MethodType(self, obj)
399
400 def __reduce__(self):
401 return type(self), (self.func,), (self.func, self.args,

Callers 2

__get__Method · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected