R. David Murray added the comment:

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.

----------
nosy: +r.david.murray
type: behavior -> enhancement
versions: +Python 3.6 -Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27432>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to