Delete DictProtocol. impl ItemProtocol for PyDictRef.

This commit is contained in:
Adam Kelly
2019-04-06 09:41:46 +01:00
parent ee9066a713
commit 7b2d92f495
12 changed files with 78 additions and 59 deletions

View File

@@ -66,6 +66,8 @@ assert type(x) == LengthDict
assert x['word'] == 4
assert x.get('word') is None
assert 5 == eval("a + word", LengthDict())
# An object that hashes to the same value always, and compares equal if any its values match.
class Hashable(object):
def __init__(self, *args):