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 ncoghlan
Recipients eric.araujo, ezio.melotti, ncoghlan, petri.lehtinen, terry.reedy
Date 2011-11-18.11:41:20
SpamBayes Score 2.684557e-10
Marked as misclassified No
Message-id <1321616481.6.0.785282234232.issue13349@psf.upfronthosting.co.za>
In-reply-to
Content
Please don't stress too much about providing an indication that the repr has been truncated - it's an error message, not part of the normal program output. Besides, the lack of a closing ')', ']', '}' or '>' will usually indicate something is amiss in long reprs.

More useful would be to raise a separate feature request about the lack of width and precision handling for string formatting in PyUnicode_FromFormatV - the common format code handling means it *accepts* the width and precision information for string codes, but then proceeds to completely ignore it. It should be using them to pad short strings (width) and truncate long ones (precision), just like printf() (only in terms of code points rather than bytes, since those codes work with Unicode text).
History
Date User Action Args
2011-11-18 11:41:21ncoghlansetrecipients: + ncoghlan, terry.reedy, ezio.melotti, eric.araujo, petri.lehtinen
2011-11-18 11:41:21ncoghlansetmessageid: <1321616481.6.0.785282234232.issue13349@psf.upfronthosting.co.za>
2011-11-18 11:41:21ncoghlanlinkissue13349 messages
2011-11-18 11:41:20ncoghlancreate