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 r.david.murray
Recipients Camilla Ke, r.david.murray
Date 2016-07-01.13:52:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467381140.74.0.300880556397.issue27432@psf.upfronthosting.co.za>
In-reply-to
Content
This is by design.  The short option was introduced to use in specific asserts (assertDictEqual and assertMultilineEqual; see 8b8701551253).  These were later enhanced to do an even better job of abbreviating the output usefully, but the short option on safe_repr was not removed even though it is no longer used, for backward compatibility reasons.

If you would like for there to be a way to toggle safe_repr's default, that would be a new feature request, and seems like a reasononable feature to me.  The new feature should incorporate a way to set _MAX_LENGTH as well.
History
Date User Action Args
2016-07-01 13:52:20r.david.murraysetrecipients: + r.david.murray, Camilla Ke
2016-07-01 13:52:20r.david.murraysetmessageid: <1467381140.74.0.300880556397.issue27432@psf.upfronthosting.co.za>
2016-07-01 13:52:20r.david.murraylinkissue27432 messages
2016-07-01 13:52:20r.david.murraycreate