-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
Trivial: Change list.remove(x) documentation to better document the error raised #8636
Conversation
…e an error is raised
Thanks @lysnikolaou for the PR, and @Mariatta for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7. |
Rephrase it to "It raises a `ValueError`" (cherry picked from commit bcd1d97) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
GH-8641 is a backport of this pull request to the 3.7 branch. |
Sorry, @lysnikolaou and @Mariatta, I could not cleanly backport this to |
Sorry, @lysnikolaou and @Mariatta, I could not cleanly backport this to |
Rephrase it to "It raises a `ValueError`" (cherry picked from commit bcd1d97) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Shouldn't the docstring be updated? See also |
Docstring documents the |
I changed "It is an error" to "It raises a
ValueError
", as I found it more suitable and more consistent to the documentations of the other methods.