Reword docs to avoid saying things that aren't accurate by Rosuav · Pull Request #2523 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Closed
Conversation
mention-bot
commented
Jul 1, 2017
mention-bot commented
@Rosuav, thanks for your PR! By analyzing the history of the files in this pull request, we identified @1st1, @birkenfeld and @tiran to be potential reviewers.
the-knights-who-say-ni
added
the
CLA signed
label
Rosuav
commented
Jul 1, 2017
Rosuav commented
Contributor Author
(Trivial)
wm75
commented
Jul 2, 2017
wm75 commented
Compare to https://docs.python.org/3/tutorial/controlflow.html#the-range-function, which has the same problem. PR #273 proposes to change this section, but leaves the range is a function part unaltered. It introduces the returned object as an iterable instead of a sequence and, of course, either is correct.
brettcannon
added
the
awaiting review
label
rhettinger
commented
Dec 24, 2018
rhettinger commented
Contributor
Sorry, but I don't see any improvement here.
rhettinger
closed this
Rosuav
commented
Dec 24, 2018
Rosuav commented
Contributor Author
Fine, whatevs. I opened the PR in direct response to someone who was asking about how come range() wasn't behaving like an iterator, so there definitely is some inaccuracy and some confusion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment