[issue22721] pprint output for sets and dicts is not stable

Raymond Hettinger report at bugs.python.org
Wed Nov 5 09:55:46 CET 2014


Raymond Hettinger added the comment:

> the primary sort will be on the type of quote used for the repr,
> which would be surprising and significantly less useful.

How about:  repr(obj).strip("'\"") ?

Overall, the idea of using repr() in some fashion is appealing because it sorts on what the user actually sees.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22721>
_______________________________________


More information about the Python-bugs-list mailing list