(self, instance, cls)
| 2 | def __init__(self, func): |
| 3 | self.func = func |
| 4 | def __get__(self, instance, cls): |
| 5 | if instance is None: |
| 6 | return self |
| 7 | else: |
| 8 | value = self.func(instance) |
| 9 | setattr(instance, self.func.__name__, value) |
| 10 | return value |
| 11 | |
| 12 | if __name__ == '__main__': |
| 13 | import math |
nothing calls this directly
no outgoing calls
no test coverage detected