We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b306413 commit db28072Copy full SHA for db28072
py/dict.go
@@ -57,3 +57,30 @@ func (d StringDict) M__setitem__(key, value Object) Object {
57
d[string(str)] = value
58
return None
59
}
60
+
61
+func (a StringDict) M__eq__(other Object) Object {
62
+ b, ok := other.(StringDict)
63
+ if !ok {
64
+ return NotImplemented
65
+ }
66
+ if len(a) != len(b) {
67
+ return False
68
69
+ for k, av := range a {
70
+ bv, ok := b[k]
71
72
73
74
+ if Eq(av, bv) == False {
75
76
77
78
+ return True
79
+}
80
81
+func (a StringDict) M__ne__(other Object) Object {
82
+ if a.M__eq__(other) == True {
83
84
85
86
0 commit comments