Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
3abiton
2y ago
0 comments
Save
Share
I never got on board of decorators in python, but you sold me on it.
0 comments
1 comments · 1 top-level
top
newest
oldest
jwestbury
2y ago
Another 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.
j
/
k
navigate · click thread line to collapse