endpoints
endpoints copied to clipboard
route and version decorators with the same name
I could try to see if I could make this work:
callframe = sys._getframe(1)
namespace = callframe.f_locals
via: In Python, decorate two methods with the same name to distinguish them
Basically, if the method names are the same then I would get the frame and get the locals and save the method under a different name in the class.
search:
- python decorator function with same name on class