-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Add IndexError to tutorial datastructures list.pop doc #114648
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
Comments
Looks reasonable. Do you mind to create a PR? |
Will do |
take |
list.pop
doc in datastructures
tutorial to include the IndexError
terryjreedy
pushed a commit
that referenced
this issue
Feb 1, 2024
…op entry (#114681) Remove redundant explanation of optional argument.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 1, 2024
…list.pop entry (pythonGH-114681) Remove redundant explanation of optional argument. (cherry picked from commit 57c3e77) Co-authored-by: srinivasan <shivnaren@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 1, 2024
…list.pop entry (pythonGH-114681) Remove redundant explanation of optional argument. (cherry picked from commit 57c3e77) Co-authored-by: srinivasan <shivnaren@gmail.com>
terryjreedy
pushed a commit
that referenced
this issue
Feb 1, 2024
terryjreedy
pushed a commit
that referenced
this issue
Feb 1, 2024
Thank you for the report and PR. This exception is part of list.pop's API. |
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
…list.pop entry (python#114681) Remove redundant explanation of optional argument.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Documentation
In the Datastructures tutorial, the
remove
andindex
methods mention that anIndexError
may be raised.The tutorial is not intended to be an extensive reference, but I feel it is better to state the potential exception.
We could add the boldfaced text to the paragraph:
Thoughts?
Linked PRs
The text was updated successfully, but these errors were encountered: