Skip to content

Instantly share code, notes, and snippets.

@yhaskell
Created March 3, 2017 14:26
Show Gist options
  • Save yhaskell/99d7b29d3f1ff71a358d8d7eb4cfeba5 to your computer and use it in GitHub Desktop.
Save yhaskell/99d7b29d3f1ff71a358d8d7eb4cfeba5 to your computer and use it in GitHub Desktop.
import inspect
def double(x):
""" doubles the argument. """
return x * 2
def main():
print(inspect.getdoc(double))
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment