Skip to content

Instantly share code, notes, and snippets.

@ycui1

ycui1/decorators_doc.py

Last active Sep 2, 2020
Embed
What would you like to do?
>>> @logging_time
... def say_hello(whom):
... """Greet someone"""
... print(f"Hello, {whom}!")
...
... print(say_hello.__doc__)
...
Function that logs time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment