Re: Help with pprint

2009-11-25 Thread Terry Reedy
Nadav Chernin wrote: Hello, I want to print list of lists in matrix format. So I use pprint with parameter ‘width’ for this target. For example : >>> data=[[1, 1, 1], [1, 1, 1], [1, 1, 1]] >>> pprint(data,width=20) [[1, 1, 1], [1, 1, 1], [1, 1, 1]] The problem that I don’t know how to

Re: Help with pprint

2009-11-25 Thread Emile van Sebille
On 11/25/2009 4:47 AM Nadav Chernin said... Hello, I want to print list of lists in matrix format. So I use pprint with parameter ‘width’ for this target. The problem that I don’t know how to select width value, because if: >>>data=[['one', 'one', 'one'], ['one', 'one', 'one'], ['one', 'o

Help with pprint

2009-11-25 Thread Nadav Chernin
Hello, I want to print list of lists in matrix format. So I use pprint with parameter 'width' for this target. For example : >>> data=[[1, 1, 1], [1, 1, 1], [1, 1, 1]] >>> pprint(data,width=20) [[1, 1, 1], [1, 1, 1], [1, 1, 1]] The problem that I don't know how to select width value