Skip to content

Instantly share code, notes, and snippets.

@akash-coded
Created March 12, 2020 14:07
Show Gist options
  • Save akash-coded/53fd26d989e4b03146ead6eb49c1fe6d to your computer and use it in GitHub Desktop.
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
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