Skip to content

Commit 9b364b3

Browse files
committed
__ne__ of dict return NotImplemented
if type of other is not dict, return NotImplemented Fixes #108
1 parent af17d7d commit 9b364b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/dict.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ func (a StringDict) M__ne__(other Object) (Object, error) {
169169
if err != nil {
170170
return nil, err
171171
}
172+
if res == NotImplemented {
173+
return res, nil
174+
}
172175
if res == True {
173176
return False, nil
174177
}

0 commit comments

Comments
 (0)