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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29043>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to