endpoints icon indicating copy to clipboard operation
endpoints copied to clipboard

route and version decorators with the same name

Open Jaymon opened this issue 4 years ago • 0 comments

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

Jaymon avatar Feb 11 '20 01:02 Jaymon