Message10955

Author buelgsk8er
Recipients buelgsk8er
Date 2016-09-25.09:01:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474794118.2.0.95789803427.issue2522@psf.upfronthosting.co.za>
In-reply-to
Content
How to reproduce
================

in CPython 2.7:

>>> from collections import defaultdict
>>> dict().__getitem__({})
TypeError: unhashable type: 'dict'
>>> dict().__setitem__({}, None)
TypeError: unhashable type: 'dict'
>>> defaultdict(int).__setitem__({}, None)
TypeError: unhashable type: 'dict'
>>> defaultdict(int).__getitem__({})
TypeError: unhashable type: 'dict'


in Jython 2.7.1b3

>>> UNHASHABLE = {}
>>> dict().__getitem__(UNHASHABLE)
TypeError: unhashable type: 'dict'
>>> dict().__setitem__({}, None)
TypeError: unhashable type: 'dict'
>>> defaultdict(int).__setitem__({}, None)
TypeError: unhashable type: 'dict'
>>> defaultdict(int).__getitem__({})
KeyError: {}
History
Date User Action Args
2016-09-25 09:01:58buelgsk8ersetrecipients: + buelgsk8er
2016-09-25 09:01:58buelgsk8ersetmessageid: <1474794118.2.0.95789803427.issue2522@psf.upfronthosting.co.za>
2016-09-25 09:01:58buelgsk8erlinkissue2522 messages
2016-09-25 09:01:57buelgsk8ercreate