FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

__ne__ of dict return NotImplemented by HyeockJinKim · Pull Request #109 · go-python/gpython · GitHub

__ne__ of dict return NotImplemented - #109

Merged
ncw merged 2 commits into
go-python:masterfrom
HyeockJinKim:issue108
Oct 8, 2019
Merged

__ne__ of dict return NotImplemented#109
ncw merged 2 commits into
go-python:masterfrom
HyeockJinKim:issue108

Conversation

Copy link
Copy Markdown
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 commented Sep 30, 2019
edited
Loading

Copy link
Copy Markdown

Codecov Report

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

@@            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.

Copy link
Copy Markdown
Contributor Author

@corona10
Can I get a review?

ncw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 :-)

Comment thread 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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Removed it. Would you like to review it again?

ncw commented Oct 8, 2019

Copy link
Copy Markdown
Collaborator

Thank you :-)

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

I'll merge this now.

ncw merged commit 60e853c into go-python:master Oct 8, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL