Created
February 16, 2020 14:10
-
-
Save housamz/da736061dbe24ff853c33967de1158de to your computer and use it in GitHub Desktop.
Python Dumb Object
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
def dump(obj): | |
for attr in dir(obj): | |
print("obj.%s = %r" % (attr, getattr(obj, attr))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment