mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Update list.remove(x) documentation (GH-8636)
Rephrase it to "It raises a `ValueError`"
This commit is contained in:
parent
46ebe61c7f
commit
bcd1d971b6
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ objects:
|
|||
.. method:: list.remove(x)
|
||||
:noindex:
|
||||
|
||||
Remove the first item from the list whose value is equal to *x*. It is an error if
|
||||
there is no such item.
|
||||
Remove the first item from the list whose value is equal to *x*. It raises a
|
||||
``ValueError`` if there is no such item.
|
||||
|
||||
|
||||
.. method:: list.pop([i])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue