[issue19105] pprint doesn't use all width

Serhiy Storchaka report at bugs.python.org
Wed Oct 2 18:47:56 CEST 2013


Serhiy Storchaka added the comment:

Here is a patch.

Without patch:

>>> pprint.pprint([[[[[[[[[[0, 0, 0]]*3]]]]]]]], width=21)
[[[[[[[[[[0,
          0,
          0],
         [0,
          0,
          0],
         [0,
          0,
          0]]]]]]]]]]

With patch:

>>> pprint.pprint([[[[[[[[[[0, 0, 0]]*3]]]]]]]], width=21)
[[[[[[[[[[0, 0, 0],
         [0, 0, 0],
         [0,
          0,
          0]]]]]]]]]]

----------
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file31945/pprint_all_width.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19105>
_______________________________________


More information about the Python-bugs-list mailing list