I have a decorated function (simplified version): class Memoize: def __init__(self, function): self.function = function
This is my code. I don\'t know why it doesn\'t work. class a: def __get__(self): return \'xxx\' def aa(self):
Python 2.5.4. Fairly new to Python, brand new to decorators as of last night. If I have a class with multiple boolean attributes:
I\'ve started to use the python descriptor protocol more extensively in the code I\'ve been writing.Typically, the default python lookup magic is what I want to happen, but sometimes I\'m finding I wa