Author sbt
Recipients barry, eli.bendersky, eric.smith, ethan.furman, mrabarnett, pitrou, r.david.murray, rhettinger, sbt, serhiy.storchaka, theller, tim.peters, vstinner
Date 2013-09-10.14:53:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378824839.65.0.814408486562.issue18986@psf.upfronthosting.co.za>
In-reply-to
Content
With the current patch __repr__() will fail if the untransformed key is unhashable:

>>> d = collections.transformdict(id)
>>> L = [1,2,3]
>>> d[L] = None 
>>> d.keys()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Repos\cpython-dirty\lib\collections\abc.py", line 444, in __repr__
    return '{0.__class__.__name__}({0._mapping!r})'.format(self)
  File "C:\Repos\cpython-dirty\lib\collections\__init__.py", line 944, in __repr__
    self._transform, repr(dict(self)))
TypeError: unhashable type: 'list'
History
Date User Action Args
2013-09-10 14:53:59sbtsetrecipients: + sbt, tim.peters, barry, theller, rhettinger, pitrou, vstinner, eric.smith, mrabarnett, r.david.murray, eli.bendersky, ethan.furman, serhiy.storchaka
2013-09-10 14:53:59sbtsetmessageid: <1378824839.65.0.814408486562.issue18986@psf.upfronthosting.co.za>
2013-09-10 14:53:59sbtlinkissue18986 messages
2013-09-10 14:53:59sbtcreate