property decorator does not return correct value
I've noticed that "many" python modules use the property decorator quite a bit, and property is a builtin function, so I've tried to partially implement it to to obtain its retrieve (fget) functionality. I think I've done this properly, but I'm not sure the $DecoratorCTX and a classes getattr will handle this properly..
for example, the code below should print out 5, but it returns the "function" instead, so its just ignoring the decorator.
class myclass: @property def getx(self): return 5 x=myclass() print(x.getx)
Any suggestions on how to accomplish this?