Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff5d114 commit a39de11Copy full SHA for a39de11
py/tuple.go
@@ -106,3 +106,35 @@ var _ I__iter__ = Tuple(nil)
106
var _ I__getitem__ = Tuple(nil)
107
108
// var _ richComparison = Tuple(nil)
109
+
110
+func (a Tuple) M__eq__(other Object) Object {
111
+ b, ok := other.(Tuple)
112
+ if !ok {
113
+ return NotImplemented
114
+ }
115
+ if len(a) != len(b) {
116
+ return False
117
118
+ for i := range a {
119
+ if Eq(a[i], b[i]) == False {
120
121
122
123
+ return True
124
+}
125
126
+func (a Tuple) M__ne__(other Object) Object {
127
128
129
130
131
132
133
134
135
136
137
138
139
140
0 commit comments