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

Class D2

Lib/test/test_functools.py:3105–3112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3103 return "special5"
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 1

CClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected