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 (aTuple) M__eq__(otherObject) Object{
111
+b, ok:=other.(Tuple)
112
+if!ok{
113
+returnNotImplemented
114
+ }
115
+iflen(a) !=len(b){
116
+returnFalse
117
118
+fori:=rangea{
119
+ifEq(a[i], b[i]) ==False{
120
121
122
123
+returnTrue
124
+}
125
126
+func (aTuple) M__ne__(otherObject) Object{
127
128
129
130
131
132
133
134
135
136
137
138
139
140
0 commit comments