mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
Delete DictProtocol. impl ItemProtocol for PyDictRef.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user