(f)
| 11 | |
| 12 | |
| 13 | def fixedpropety(f): |
| 14 | cache_name = "_" + f.__name__ |
| 15 | |
| 16 | def prop(self): |
| 17 | try: |
| 18 | return getattr(self, cache_name) |
| 19 | except AttributeError: |
| 20 | setattr(self, cache_name, f(self)) |
| 21 | return getattr(self, cache_name) |
| 22 | return property(prop, doc=f.__doc__) |
| 23 | |
| 24 | # Slow fix of the typo :) |
| 25 | fixedproperty = fixedpropety |
nothing calls this directly
no outgoing calls
no test coverage detected