Visitar URL original
builtin: Implement builtin sum by corona10 · Pull Request #21 · go-python/gpython · GitHub
The Wayback Machine - https://web.archive.org/web/20200910210533/https://github.com/go-python/gpython/pull/21
Skip to content
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

builtin: Implement builtin sum #21

Merged
merged 1 commit into from Sep 4, 2018
Merged

Conversation

@corona10
Copy link
Member

corona10 commented Aug 31, 2018

Implement built-in sum.

@corona10 corona10 requested review from ncw and sbinet Aug 31, 2018
@corona10 corona10 force-pushed the corona10:builtin_sum branch from b2c4878 to 16446fe Aug 31, 2018
@codecov-io
Copy link

codecov-io commented Aug 31, 2018 •

Codecov Report

Merging #21 into master will increase coverage by 0.05%.
The diff coverage is 82.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
+ Coverage    64.5%   64.55%   +0.05%     
==========================================
  Files          55       55              
  Lines        9740     9768      +28     
==========================================
+ Hits         6283     6306      +23     
- Misses       3010     3013       +3     
- Partials      447      449       +2
Impacted Files Coverage Δ
builtin/builtin.go 75.2% <82.14%> (+0.57%) ⬆️

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 ed3c651...ba56f58. Read the comment docs.

@corona10
Copy link
Member Author

corona10 commented Aug 31, 2018

@ncw PTAL

@corona10 corona10 force-pushed the corona10:builtin_sum branch from 16446fe to ba56f58 Sep 1, 2018
@corona10
Copy link
Member Author

corona10 commented Sep 1, 2018

@sbinet I've updated PTAL

@sbinet
sbinet approved these changes Sep 1, 2018
@corona10
Copy link
Member Author

corona10 commented Sep 1, 2018

@ncw Can you take a look?

Copy link
Collaborator

ncw left a comment

I think this OK apart from the tests not passing under py3test. If you rebase to master then you'll get the testing stuff in travis and you can see what I mean.

try:
sum(['h', 'i'])
except TypeError as e:
if e.args[0] != "unsupported operand type(s) for +: 'int' and 'string'":

This comment has been minimized.

@ncw

ncw Sep 3, 2018

Collaborator

This fails under python3 because the error message is actually

TypeError: unsupported operand type(s) for +: 'int' and 'str'

I'll work on getting py3test into the CI

@corona10 corona10 force-pushed the corona10:builtin_sum branch from ba56f58 to 8d3d3ff Sep 3, 2018
@corona10 corona10 force-pushed the corona10:builtin_sum branch from 8d3d3ff to d5a6536 Sep 3, 2018
@corona10
Copy link
Member Author

corona10 commented Sep 3, 2018

@ncw
Your CL is awesome!
I 've rebased the master and fix a code which is related to failing.
PTAL

@sbinet
sbinet approved these changes Sep 4, 2018
Copy link
Member

sbinet left a comment

I would probably leave the s/"string"/"str"/ change in its own commit, but ok.

LGTM.

@ncw
ncw approved these changes Sep 4, 2018
@ncw
Copy link
Collaborator

ncw commented Sep 4, 2018

Look great now - thanks :-)

@corona10 corona10 merged commit 09f14d0 into go-python:master Sep 4, 2018
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@corona10 corona10 deleted the corona10:builtin_sum branch Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.