Skip to content

Instantly share code, notes, and snippets.

@ycui1
Created September 2, 2020 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ycui1/1834e2644aaf9bc2eed1c52971071fa2 to your computer and use it in GitHub Desktop.
Save ycui1/1834e2644aaf9bc2eed1c52971071fa2 to your computer and use it in GitHub Desktop.
>>> @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