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

Method __get__

Lib/test/test_descr.py:4811–4812  ·  view source on GitHub ↗
(self, ob, type=None)

Source from the content-addressed store, hash-verified

4809
4810 class Descr(object):
4811 def __get__(self, ob, type=None):
4812 return 1
4813
4814 class C(object):
4815 attr = Descr()

Callers 14

__call__Method · 0.45
test_classmethodsMethod · 0.45
test_classicMethod · 0.45
test_methodsMethod · 0.45
test_methods_in_cMethod · 0.45
__get__Method · 0.45
test_propertiesMethod · 0.45
test_supersMethod · 0.45
test_meth_class_getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected