4 ms·
I never got on board of decorators in python, but you sold me on it.
by 3abiton 3y ago
I never got on board of decorators in python, but you sold me on it.
- jwestbury 3y agoAnother really good use is performance metrics -- decorators to track execution time, for instance, with the ability to specify things like function groups, logic concepts, etc. It makes it trivial to add this sort of observability to your code.