Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def FormatList(object, width=100):
- keys = [i for i in dir(object) if ( not str(i).startswith('__'))]
- if keys:
- for key in keys:
- print("{0:<40} : {1:<80}".format(key, (str(getattr(object, key)))[:width]))
Add Comment
Please, Sign In to add comment