Raymond Hettinger <[email protected]> added the comment:
I'm thinking that pprint should not try to sort unsortable items.
try:
items = sorted(items)
except TypeError:
items = list(items)
----------
assignee: -> rhettinger
nosy: +rhettinger
versions: +Python 3.1, Python 3.2 -Python 3.0
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue3976>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com