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

bpo-34848 : Correct a method signature in docstring for range(..).index method #9877

Merged
merged 1 commit into from May 3, 2019

Conversation

Projects
None yet
8 participants
@srinivasreddy
Copy link
Contributor

commented Oct 14, 2018

@srinivasreddy

This comment has been minimized.

Copy link
Contributor Author

commented Oct 14, 2018

>>> range(100).index(2,0,10)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: index() takes exactly one argument (3 given)
>>> range(100).index(2,0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: index() takes exactly one argument (2 given)
>>> range(100).index(2)
2
>>> range(100).index(100)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: 100 is not in range
>>> range(100).index(99)
99

@srinivasreddy srinivasreddy changed the title Closes bpo:34848 : Correct an incorrect method signature in docstring for range(..).index method Closes bpo:34848 : Correct a method signature in docstring for range(..).index method Oct 14, 2018

@srinivasreddy srinivasreddy changed the title Closes bpo:34848 : Correct a method signature in docstring for range(..).index method Closes bpo-34848 : Correct a method signature in docstring for range(..).index method Oct 14, 2018

@serhiy-storchaka serhiy-storchaka requested a review from rhettinger Oct 16, 2018

@srinivasreddy srinivasreddy changed the title Closes bpo-34848 : Correct a method signature in docstring for range(..).index method bpo-34848 : Correct a method signature in docstring for range(..).index method Oct 23, 2018

@ericvsmith ericvsmith added the skip news label May 3, 2019

@vstinner vstinner merged commit 22c5263 into python:master May 3, 2019

5 checks passed

Azure Pipelines PR #20181014.35 succeeded
Details
bedevere/issue-number Issue number 34848 found
Details
bedevere/news "skip news" label found
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@miss-islington

This comment has been minimized.

Copy link

commented May 3, 2019

Thanks @srinivasreddy for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒🤖

@bedevere-bot

This comment has been minimized.

Copy link

commented May 3, 2019

GH-13075 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit to miss-islington/cpython that referenced this pull request May 3, 2019

bpo:34848 : Correct an incorrect docstring for range().index method (p…
…ythonGH-9877)

(cherry picked from commit 22c526394b2ef51b985873ddbfbcc32c16411919)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>

@srinivasreddy srinivasreddy deleted the srinivasreddy:34848 branch May 3, 2019

miss-islington added a commit that referenced this pull request May 3, 2019

bpo:34848 : Correct an incorrect docstring for range().index method (G…
…H-9877)

(cherry picked from commit 22c5263)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.