Python Forum
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
two modules i use
#3
a prettier one, IMHO.

ok, i admit i was not aware of pprint. :P   but if i was, i would not regularly use it and would still write my own. i do think my own is prettier. in version 0.1 the first feature was padding the dictionary names (keys) so the values stacked up straight.  sorting them was a later feature.

then i added the features to show string lengths and list element indexes (also helped to see how long a list was).  this was to aid debugging (making sure a long string was not too much longer than another).

a lot of what i was using this to debug was stuff that ran in cloud instances i was not logged into (logging to files and maybe later looked at).


maybe others prefer less vertical output?  :angel:
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.


Messages In This Thread
two modules i use - by Skaperen - Sep-27-2016, 03:20 AM
RE: two modules i use - by nilamo - Sep-27-2016, 03:18 PM
RE: two modules i use - by Skaperen - Sep-28-2016, 02:20 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020