Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
__ne__ of dict return NotImplemented
if type of other is not dict,
return NotImplemented

Fixes #108
  • Loading branch information
HyeockJinKim committed Sep 30, 2019
commit 9b364b3fe82ec1e3caa5e6cf6a7aea967f135598
3 changes: 3 additions & 0 deletions py/dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ func (a StringDict) M__ne__(other Object) (Object, error) {
if err != nil {
return nil, err
}
if res == NotImplemented {
return res, nil
}
if res == True {
return False, nil
}
Expand Down