[issue29043] dict view string representations are misleading
Raymond Hettinger
report at bugs.python.org
Wed Dec 21 23:57:30 EST 2016
Raymond Hettinger added the comment:
In this case, practicality beats purity. We want to repr to show the contents of the dictionary (that improves usability). The general rule that repr's need to round-trip is only a general rule and has many exceptions. As of course, in this case, it isn't possible to reinstantiate.
This repr has been already been published and present long enough that it is set is stone (this ship sailed long ago, it is even present in Python 2.7). Also, the proposed repr looks a little weird to my eyes and I don't think changing it would be of benefit to any one.
So, thank you for the suggestion, but I'm going to pass on this one.
----------
nosy: +rhettinger
resolution: -> rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29043>
_______________________________________
More information about the Python-bugs-list
mailing list