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

Method __get__

Lib/test/test_functools.py:3106–3112  ·  view source on GitHub ↗
(self, inst, owner)

Source from the content-addressed store, hash-verified

3104
3105 class D2:
3106 def __get__(self, inst, owner):
3107 # Different instance bound to the returned method
3108 # doesn't cause it to receive the original instance
3109 # as a separate argument.
3110 # To work around this, wrap the returned bound method
3111 # with `functools.partial`.
3112 return C().special5
3113
3114 generic.register(D2, D2())
3115

Callers

nothing calls this directly

Calls 1

CClass · 0.70

Tested by

no test coverage detected