You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2014-11-01.08:02:13.899>created_at=<Date2014-10-24.15:47:29.092>labels= ['type-bug', 'library']
title='pprint not handline uncomparable dictionary keys, set members well'updated_at=<Date2014-11-01.08:02:13.897>user='https://bugs.python.org/AndreasKostyrka'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/pprint.py", line 63, in pformatreturn PrettyPrinter(indent=indent, width=width, depth=depth).pformat(object)
File "/usr/lib/python2.7/pprint.py", line 122, in pformatself._format(object, sio, 0, 0, {}, 0)
File "/usr/lib/python2.7/pprint.py", line 140, in _format
rep =self._repr(object, context, level -1)
File "/usr/lib/python2.7/pprint.py", line 226, in _reprself._depth, level)
File "/usr/lib/python2.7/pprint.py", line 238, in formatreturn _safe_repr(object, context, maxlevels, level)
File "/usr/lib/python2.7/pprint.py", line 280, in _safe_reprfor k, v in _sorted(object.items()):
File "/usr/lib/python2.7/pprint.py", line 82, in _sortedreturnsorted(iterable)
TypeError: can't compare datetime.datetime to NoneType
AndreasKostyrkamannequin
changed the title
pprint not handline uncomparable dictionary keys well
pprint not handline uncomparable dictionary keys, set members well
Oct 24, 2014
Actually, it applies to datetime, which is is almost unique among python2 datatypes in not being comparable to other types by default. I'm not sure this is worth fixing in 2.7.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: