[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-20 Thread Armin Ronacher
Changes by Armin Ronacher : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-20 Thread Armin Ronacher
Armin Ronacher added the comment: Duplicate of #3976 -- resolution: -> duplicate ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-20 Thread Armin Ronacher
Armin Ronacher added the comment: Yes. Appears to be related. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it the same as #3976? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-19 Thread Georg Brandl
Georg Brandl added the comment: A simple fix is to use key=lambda x: (id(type(x)), x). However, that obviously doesn't work with values of different, but orderable types. At the moment, I don't see how the Python 2 sort could be implemented without a cmp() argument to sorted(). -- nos

[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-19 Thread Armin Ronacher
New submission from Armin Ronacher : Currently pprint does not work on dicts it cannot sort. Because in Python 3 sorted(x.items()) is no longer guaranteed to work a new sorting solution has to be found. -- messages: 92862 nosy: aronacher severity: normal status: open title: pprint.pprin