Skip to content

Instantly share code, notes, and snippets.

@deanwilson
Created July 19, 2011 08:19
Show Gist options
  • Save deanwilson/1091702 to your computer and use it in GitHub Desktop.
Save deanwilson/1091702 to your computer and use it in GitHub Desktop.
Python method lister
methodList = [method for method in dir(conduit) if callable(getattr(conduit, method))]
for method in methodList:
print method
for method in methodList:
print "\n".join([ "%s %s", method, str(getattr(conduit, method).__doc__) ])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment