← Winnitude! Search  ·  Reader Mode (1720 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 53 LINKS

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

Repository navigation

__ne__ of dict return NotImplemented - #109


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

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

Conversation

HyeockJinKim commented Sep 30, 2019



Copy link Copy Markdown
Contributor

if type of other is not dict,
return NotImplemented

Fixes #108

__ne__ of dict return NotImplemented 9b364b3
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 .

HyeockJinKim commented Sep 30, 2019



Copy link Copy Markdown
Contributor

Author

@corona10
Can I get a review?

ncw requested changes Oct 1, 2019
View reviewed changes

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 .

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
Add tests for dict.__ne__ and dict.__eq__ fb48d32 HyeockJinKim force-pushed the issue108 branch from 76cc82a to fb48d32
Compare
October 1, 2019 10:51 ncw approved these changes Oct 8, 2019
View reviewed changes

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 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

3 participants