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

Define xrange() in Python 3 #21945

Closed
wants to merge 1 commit into from
Closed

Define xrange() in Python 3 #21945

wants to merge 1 commit into from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Jul 23, 2018

xrange() was removed in Python 3 in favor of range(). This PR ensures similar functionality on both Python 2 and Python 3.

Discovered via https://travis-ci.com/nodejs/node/builds/79706150 (#21942)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

__xrange()__ was removed in Python 3 in favor of __range()__.  This PR ensures similar functionality on both Python 2 and Python 3.

Discovered via https://travis-ci.com/nodejs/node/builds/79706150 (nodejs#21942)
@nodejs-github-bot nodejs-github-bot added the tools Issues and PRs related to the tools directory. label Jul 23, 2018
@TimothyGu
Copy link
Member

Refs: google/styleguide#332

@addaleax addaleax added the python PRs and issues that require attention from people who are familiar with Python. label Jul 23, 2018
@addaleax
Copy link
Member

@addaleax addaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jul 23, 2018
@addaleax
Copy link
Member

By the way, your author name in this commit is given as “cclauss”. Is that intended or do you prefer to be listed (changelog, git log, AUTHORS file) with some other name? People typically prefer their full name, but ultimately it’s up to you.

@cclauss
Copy link
Contributor Author

cclauss commented Jul 23, 2018

cclauss is fine as the author name

@cclauss
Copy link
Contributor Author

cclauss commented Jul 24, 2018

I can not make sense of these error reports. Please help.

@TimothyGu
Copy link
Member

TimothyGu commented Jul 24, 2018

@cclauss Re-running the failed CI.

CI: https://ci.nodejs.org/job/node-test-pull-request/15999/

@TimothyGu
Copy link
Member

@TimothyGu
Copy link
Member

Seems like everything passes now!

@addaleax
Copy link
Member

Landed in bade0fe, thanks for the contribution! 🎉

@addaleax addaleax closed this Jul 27, 2018
addaleax pushed a commit that referenced this pull request Jul 27, 2018
__xrange()__ was removed in Python 3 in favor of __range()__.
This PR ensures similar functionality on both Python 2 and Python 3.

Discovered via https://travis-ci.com/nodejs/node/builds/79706150
(#21942).

PR-URL: #21945
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@cclauss cclauss deleted the patch-1 branch July 27, 2018 19:44
targos pushed a commit that referenced this pull request Jul 31, 2018
__xrange()__ was removed in Python 3 in favor of __range()__.
This PR ensures similar functionality on both Python 2 and Python 3.

Discovered via https://travis-ci.com/nodejs/node/builds/79706150
(#21942).

PR-URL: #21945
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@targos targos mentioned this pull request Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. python PRs and issues that require attention from people who are familiar with Python. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants