This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Andreas.Kostyrka
Recipients Andreas.Kostyrka
Date 2014-10-24.15:47:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414165649.11.0.50429325469.issue22718@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import datetime, pprint
>>> pprint.pformat({datetime.datetime.now(): 1, None: 1})

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/pprint.py", line 63, in pformat
    return PrettyPrinter(indent=indent, width=width, depth=depth).pformat(object)
  File "/usr/lib/python2.7/pprint.py", line 122, in pformat
    self._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 _repr
    self._depth, level)
  File "/usr/lib/python2.7/pprint.py", line 238, in format
    return _safe_repr(object, context, maxlevels, level)
  File "/usr/lib/python2.7/pprint.py", line 280, in _safe_repr
    for k, v in _sorted(object.items()):
  File "/usr/lib/python2.7/pprint.py", line 82, in _sorted
    return sorted(iterable)
TypeError: can't compare datetime.datetime to NoneType

This is issue is kind of related to http://bugs.python.org/issue14998
but that talks only python 3.2+
History
Date User Action Args
2014-10-24 15:47:29Andreas.Kostyrkasetrecipients: + Andreas.Kostyrka
2014-10-24 15:47:29Andreas.Kostyrkasetmessageid: <1414165649.11.0.50429325469.issue22718@psf.upfronthosting.co.za>
2014-10-24 15:47:29Andreas.Kostyrkalinkissue22718 messages
2014-10-24 15:47:28Andreas.Kostyrkacreate