Optionally use decorators on class methods
问题 Im new to Python, and im building a wrapper for an api. I would want to let the user decide if he/she wants to use a decorator on methods I expose from my module. For example: # create a new instance api = MyApi() # return a simple json response with all the data related to a timetable print api.time_table Now the user has all the data, and can do whatever he/she wants. I would want to add some kind of 'convenience' methods, for example; to let the user get a small part of the json instead of