[issue29996] Use terminal width by default in pprint
Josh Rosenberg
report at bugs.python.org
Thu Apr 6 14:08:41 EDT 2017
Josh Rosenberg added the comment:
Thus, you keep your default behavior of width=80, while I just add the following to my PYTHONSTARTUP file:
from functools import partial
from pprint import pprint, AUTOWIDTH
pprint = partial(pprint, width=AUTOWIDTH)
and we both get what we want.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29996>
_______________________________________
More information about the Python-bugs-list
mailing list