I have a two dimensional array of numbers, something like
[[1, 123, 2], [22, 4567, 33], [0, 0, 0]]
That I would like to print in a debugging session. It would be useful for the columns to line up.
Is there a way to tell pprint to use a particular printing format for the numbers (e.g. '%4d')?
If you aren’t set on pprint then,
otherwise refer to Acorn’s comment.