Created
August 5, 2014 21:06
-
-
Save mitliagkas/b2093d810414394e664c to your computer and use it in GitHub Desktop.
List all non-method object attributes along with their values
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
import inspect | |
for p in dir(sc): | |
if p[0]=='_': | |
continue | |
if inspect.ismethod(sc.__getattribute__(p)): | |
continue | |
print p, sc.__getattribute__(p) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment