Message197445
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' |
|
Date |
User |
Action |
Args |
2013-09-10 14:53:59 | sbt | set | recipients:
+ 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:59 | sbt | set | messageid: <1378824839.65.0.814408486562.issue18986@psf.upfronthosting.co.za> |
2013-09-10 14:53:59 | sbt | link | issue18986 messages |
2013-09-10 14:53:59 | sbt | create | |
|