A Blog for things related to Linux, Python, R, Shell scripting, bioinformatics, etc.
from pprint import pprint pprint (vars(my_object)) # e.g. class instance
This prints all the attributes/properties this object currently has in a neat way.
No comments:
Post a Comment