Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
>>> @logging_time
... def calculate_sum_n(n):
... return sum(range(n))
...
... calculate_sum_n(10000)
...
Traceback (most recent call last):
File "<input>", line 5, in <module>
TypeError: logger() takes 0 positional arguments but 1 was given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment