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

Trivial: Change list.remove(x) documentation to better document the error raised #8636

Merged
merged 1 commit into from
Aug 3, 2018

Conversation

lysnikolaou
Copy link
Contributor

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.

@bedevere-bot bedevere-bot added the docs Documentation in the Doc dir label Aug 2, 2018
@miss-islington
Copy link
Contributor

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.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 3, 2018
Rephrase it to "It raises a `ValueError`"
(cherry picked from commit bcd1d97)

Co-authored-by: Lysandros Nikolaou <[email protected]>
@bedevere-bot
Copy link

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

@miss-islington
Copy link
Contributor

Sorry, @lysnikolaou and @Mariatta, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker bcd1d971b66f529cbd450aca438275b868031605 3.6

@miss-islington
Copy link
Contributor

Sorry, @lysnikolaou and @Mariatta, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker bcd1d971b66f529cbd450aca438275b868031605 2.7

miss-islington added a commit that referenced this pull request Aug 3, 2018
Rephrase it to "It raises a `ValueError`"
(cherry picked from commit bcd1d97)

Co-authored-by: Lysandros Nikolaou <[email protected]>
@serhiy-storchaka
Copy link
Member

Shouldn't the docstring be updated?

See also deque.remove().

@lysnikolaou
Copy link
Contributor Author

Docstring documents the ValueError already, deque.remove() documentation as well.

@lysnikolaou lysnikolaou deleted the doc-list-remove branch May 13, 2019 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants