Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bcd1d97

Browse files
lysnikolaouMariatta
authored andcommitted
Update list.remove(x) documentation (GH-8636)
Rephrase it to "It raises a `ValueError`"
1 parent 46ebe61 commit bcd1d97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/datastructures.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ objects:
4040
.. method:: list.remove(x)
4141
:noindex:
4242

43-
Remove the first item from the list whose value is equal to *x*. It is an error if
44-
there is no such item.
43+
Remove the first item from the list whose value is equal to *x*. It raises a
44+
``ValueError`` if there is no such item.
4545

4646

4747
.. method:: list.pop([i])

0 commit comments

Comments
 (0)