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 terry.reedy
Recipients taleinat, terry.reedy
Date 2018-12-15.03:18:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544843892.16.0.788709270274.issue35208@psf.upfronthosting.co.za>
In-reply-to
Content
My suggest simple rule would sqeeze it.  With n = 50 and k = 75,

if len(s) > n*k or s.count('\n') > n: squeeze(s)

would squeeze at 3750.  With k = 50, as 2500.

I am not sure yet what to do about wrapping.  For development, a count of actual lines might be more helpful than a variable number of wrapped lines.
History
Date User Action Args
2018-12-15 03:18:12terry.reedysetrecipients: + terry.reedy, taleinat
2018-12-15 03:18:12terry.reedysetmessageid: <1544843892.16.0.788709270274.issue35208@psf.upfronthosting.co.za>
2018-12-15 03:18:12terry.reedylinkissue35208 messages
2018-12-15 03:18:11terry.reedycreate