Skip to content

Instantly share code, notes, and snippets.

@mitliagkas
Created August 5, 2014 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitliagkas/b2093d810414394e664c to your computer and use it in GitHub Desktop.
Save mitliagkas/b2093d810414394e664c to your computer and use it in GitHub Desktop.
List all non-method object attributes along with their values
import inspect
for p in dir(sc):
if p[0]=='_':
continue
if inspect.ismethod(sc.__getattribute__(p)):
continue
print p, sc.__getattribute__(p)
print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment