Use this:
from pprint import pprint def instaPrint (obj): pprint(["%s = %s" % (attr, getattr(obj, attr)) for attr in dir(obj) if not str(attr).startswith("_")], indent=2)
Use this:
from pprint import pprint def instaPrint (obj): pprint(["%s = %s" % (attr, getattr(obj, attr)) for attr in dir(obj) if not str(attr).startswith("_")], indent=2)