Thanks to visit codestin.com
Credit goes to github.com

Skip to content

__ne__ of dict return NotImplemented #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 8, 2019
Merged

Conversation

HyeockJinKim
Copy link
Contributor

if type of other is not dict,
return NotImplemented

Fixes #108

if type of other is not dict,
return NotImplemented

Fixes go-python#108
@codecov-io
Copy link

codecov-io commented Sep 30, 2019

Codecov Report

Merging #109 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #109      +/-   ##
==========================================
+ Coverage   69.92%   70.02%   +0.09%     
==========================================
  Files          60       60              
  Lines       10819    10821       +2     
==========================================
+ Hits         7565     7577      +12     
+ Misses       2729     2718      -11     
- Partials      525      526       +1
Impacted Files Coverage Δ
py/dict.go 71.87% <100%> (+8.04%) ⬆️
py/bool.go 34.04% <0%> (+6.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36da816...fb48d32. Read the comment docs.

@HyeockJinKim
Copy link
Contributor Author

@corona10
Can I get a review?

Copy link
Collaborator

@ncw ncw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code looks great! I have a minor quibble with a comment so if you could fix that then I'll merge - thank you :-)

py/tests/dict.py Outdated
assert a.__eq__(3) != True
assert a.__ne__(3) != False
assert a.__ne__(3) != True
assert a.__ne__(3) != False # This part should be changed in comparison with NotImplemented
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this comment please? It is in the wrong place (it should be on the line above) and it refers to a bug which is fixed (or will be when this is merged) so will make no sense in the future.

The best way of making that sort of comment is to add a github comment to the review.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it. Would you like to review it again?

@ncw
Copy link
Collaborator

ncw commented Oct 8, 2019

Thank you :-)

We can think about more abstraction in a later PR if we want.

I'll merge this now.

@ncw ncw merged commit 60e853c into go-python:master Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dict.__ne__ doesn't return NotImplemented
3 participants