This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients eric.araujo, eryksun, fdrake, josh.r, rhettinger, serhiy.storchaka, xiang.zhang
Date 2017-09-01.23:20:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504308006.9.0.872984806384.issue29996@psf.upfronthosting.co.za>
In-reply-to
Content
I was about to open the same issue!  I tend to print nested data structures for debugging; having lists take up a lot of vertical screen estate and leave unused all the horizontal space is an annoyance, so that I regularly have to go back and add the width param.

Contrary to Fred, I think my tools tend to use the available width, but then I think that auto-width is a good behaviour for a tool, but maybe not a good change for a general library.  Raymond’s note about students is also an important point.  I don’t like adding envvars to control the behaviour of a module function at a distance, or magic constants; if I can pass a constant, I can pass a number (for quick debugging) or handle getting the terminal width at a higher layer (in a real command-line program).  For my debugging use case, maybe it’s time I switch to q (on PyPI) and save even more typing.

Even though I was about to request the same feature, I’m now -0.
History
Date User Action Args
2017-09-01 23:20:06eric.araujosetrecipients: + eric.araujo, fdrake, rhettinger, serhiy.storchaka, eryksun, josh.r, xiang.zhang
2017-09-01 23:20:06eric.araujosetmessageid: <1504308006.9.0.872984806384.issue29996@psf.upfronthosting.co.za>
2017-09-01 23:20:06eric.araujolinkissue29996 messages
2017-09-01 23:20:06eric.araujocreate