Created
March 12, 2020 14:07
-
-
Save akash-coded/53fd26d989e4b03146ead6eb49c1fe6d to your computer and use it in GitHub Desktop.
Sometimes, it is required to know the arguments that a function expects, their ordering, the default values and all the other goodies.
This is especially useful when we don't have access to the source code where the function has been defined.
Thankfu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from googlesearch import search | |
import inspect | |
print(str(inspect.signature(search))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment