Skip to content

Commit e900566

Browse files
committed
__ne__ of sct return NotImplemented
if type of other is not set, return NotImplemented
1 parent af17d7d commit e900566

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/set.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ func (a *Set) M__ne__(other Object) (Object, error) {
215215
if err != nil {
216216
return nil, err
217217
}
218+
if eq == NotImplemented {
219+
return eq, nil
220+
}
218221
if eq == True {
219222
return False, nil
220223
}

0 commit comments

Comments
 (0)