I have seen two examples of people using Flask writing a function like
@property
def serialize(self):
return { # object data in easily serializable format }
I understand property as a replacement for getters and setters, but who would be getting or setting a serialize function? Is there some native serialize method that we are attaching extra code to? Why isn't this just an instance method?